-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
Javascript runs afoul of content security policy #123
Comments
Thanks for the notice, @SKisContent. What would be required specifically to work around this, can you give a bit more detail? |
One CSPs option is to add a nonce="xxx" attribute to the <script> tag. |
Another solution would be to serve up a special view that served the normally inline code as a javascript file instead. (See, for instance, how Matomo/Piwik recommends serving a |
If analytics nodes could add a placeholder in their script template to handle this template variable it could be easy to use. |
On sites that have a HTTP content security policy that is not "unsafe-inline", the analytics Javascript fails to execute. One solution would be to let users specify a string in the settings that is inserted into the <script> opening tag.
The text was updated successfully, but these errors were encountered: