Open jacquesg opened 5 months ago
Hi, @jacquesg
Please try the other solution we made: https://github.com/runtime-env/runtime-env
Since the runtime-env's approach is to load a external script (same origin from your app) generated at runtime, it should works with script-src: self
.
Thank you. 😃
Currently using dynamic substitutions with the inline
style
tag:Unfortunately, this requires adding
unsafe-inline
as an option to thescript-src
value when using theContent-Security-Policy
header.Is there an alternative mechanism available, which would allow this code to reside in a "real" script?