mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Fix CSP
This commit is contained in:
parent
e20454bf58
commit
0f07ca94a3
|
|
@ -20,7 +20,7 @@ export const jsonResponse = (
|
|||
"Link,X-RateLimit-Reset,X-RateLimit-Limit,X-RateLimit-Remaining,X-Request-Id,Idempotency-Key",
|
||||
// CSP should follow Content Security Policy directive: "connect-src 'self' blob: https: wss:".
|
||||
"Content-Security-Policy":
|
||||
"default-src 'self'; connect-src 'self' blob: https: wss:; frame-ancestors 'none';",
|
||||
"default-src 'none'; frame-ancestors 'none'; form-action 'none'",
|
||||
...headers,
|
||||
},
|
||||
status,
|
||||
|
|
|
|||
Loading…
Reference in a new issue