Allow OIDC logout form submission in CSP form-action directive

The oidc-provider library renders logout forms with absolute URLs,
which gets blocked by the strict form-action 'self' CSP directive.
This commit is contained in:
Jennie Robinson Faber 2026-03-05 22:33:11 +00:00
parent c3c8b6bcd4
commit 17d29647b4

View file

@ -20,7 +20,7 @@ export default defineEventHandler((event) => {
"connect-src 'self' https://api.helcim.com https://myposjs.helcim.com https://plausible.io",
"frame-src 'self' https://myposjs.helcim.com https://secure.helcim.com",
"base-uri 'self'",
"form-action 'self'",
"form-action 'self' https://ghostguild.org",
].join('; ')
}