Created
March 10, 2023 11:53
-
-
Save D4R4/4081c5ff31ec0e6cd48293b1e915f652 to your computer and use it in GitHub Desktop.
Here's the htaccess code to allow everything in CSP
This file contains hidden or 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
<ifModule mod_headers.c> | |
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS | |
Header set X-XSS-Protection "1; mode=block" | |
Header set X-Content-Type-Options nosniff | |
Header set X-Frame-Options DENY | |
Header add Content-Security-Policy "default-src * data: blob: filesystem: about: ws: wss: 'unsafe-inline' 'unsafe-eval' 'unsafe-dynamic'; script-src * data: blob: 'unsafe-inline' 'unsafe-eval'; connect-src * data: blob: 'unsafe-inline'; img-src * data: blob: 'unsafe-inline'; frame-src * data: blob: ; style-src * data: blob: 'unsafe-inline'; font-src * data: blob: 'unsafe-inline';" | |
</ifModule> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment