mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
fix: 🐛 Fix form-action CSP
This commit is contained in:
parent
d95c1c17f0
commit
e0468c421d
|
|
@ -21,6 +21,8 @@ export default defineNuxtConfig({
|
||||||
contentSecurityPolicy: {
|
contentSecurityPolicy: {
|
||||||
"img-src": ["'self'", "data:", "https:"],
|
"img-src": ["'self'", "data:", "https:"],
|
||||||
"script-src": ["'nonce-{{nonce}}'", "'strict-dynamic'"],
|
"script-src": ["'nonce-{{nonce}}'", "'strict-dynamic'"],
|
||||||
|
// Add https because of some browsers blocking form-action to 'self' if the page is from a redirect
|
||||||
|
"form-action": ["'self'", "https:"],
|
||||||
},
|
},
|
||||||
crossOriginResourcePolicy: "same-origin",
|
crossOriginResourcePolicy: "same-origin",
|
||||||
xFrameOptions: "DENY",
|
xFrameOptions: "DENY",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue