Beginning of Strict CSP Compliance (#6841)

* Add CSP Support and enable it initially for Login page

* Update README

* Make sure that CSP is not enabled if CSP_POLICY isnt set

* Add a new value for x-csp header that tells if instance has opted-in to CSP or not

* Add more src to CSP

* Fix typo in header name

* Remove duplicate headers fn

* Add https://eu.ui-avatars.com/api/

* Add CSP_POLICY to env.example
This commit is contained in:
Hariom Balhara authored and GitHub committed 2023-02-06 22:50:08 +00:00
1 parent 390967990a
commit 30c0e6d1d7
14 files changed
+243 -58

No files matched your search

+2 -1
View File
@@ -69,7 +69,8 @@
"$DATOCMS_GRAPHQL_ENDPOINT",
"$DATOCMS_API_TOKEN",
"$STRIPE_SUPPORT_TABLE",
"$ENVIRONMENT_URL"
"$ENVIRONMENT_URL",
"$CSP_POLICY"
],
"outputs": [".next/**"]
},