-
Notifications
You must be signed in to change notification settings - Fork 13.1k
[NEW] Content-Security-Policy for inline scripts #20724
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
Conversation
7d5cc94 to
79c59f4
Compare
Co-authored-by: Diego Sampaio <[email protected]>
|
Updated to 3.16. There was an error Content-Security-Policy While disabled in the general settings Content-Security-Policy.
|
Closes #19815
Proposed changes (including videos or screenshots)
Security policies were applied for inline scripts cases. Due to the libraries and components we use it is not possible to disable inline styles and images as they would break Oembeds and other libraries.
basically the inline scripts were moved to a js file
and besides that some suggars syntax like
addScriptandaddStylewere added, this way the application already takes care of inserting the elements and providing the content automatically.Issue(s)
Steps to test or reproduce
Further comments