Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSP nonce make reload on every access with data-turbolinks-track #464

willnet opened this Issue Apr 6, 2019 · 0 comments


None yet
1 participant
Copy link

willnet commented Apr 6, 2019

<%= 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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.