CSP nonce make reload on every access with data-turbolinks-track
Author: willnetCreated Apr 6, 2019Updated Sep 21, 2021
<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload', nonce: true %>This javascript_pack_tag make reload on every access because nonce attribute changes on every access.
If remove 'data-turbolinks-track': 'reload', reloading never happen. But re-evaluate application.js on every access because turbolinks thinks of it as a new script. And reloading never happen even when URL of javascript is changed.
Is there any way that turbolinks get along with CSP nonce?
Source: turbolinks/turbolinks