-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(#502): extend CSP to work with monaco-editor
- Loading branch information
1 parent
052e56a
commit 5653903
Showing
1 changed file
with
1 addition
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ include /etc/nginx/includes/security-headers-base.conf; | |
# Govern what content can be loaded by the server and from where | ||
# Click jacking prevention to be used in addition to X-Frame-Options | ||
# Requires allowing inline-styles and inline data objects (svg imgs) | ||
add_header Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src 'self' data:; frame-ancestors 'self'; form-action 'self'; "; | ||
add_header Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; font-src 'self' data: https://cdn.jsdelivr.net/npm/[email protected]/min/; img-src 'self' data:; frame-ancestors 'self'; form-action 'self'; script-src-elem 'self' https://cdn.jsdelivr.net/npm/[email protected]/min/; style-src-elem 'self' 'unsafe-inline' https://cdn.jsdelivr.net/npm/[email protected]/min/;"; |