mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
refined header fix for standalone instances
This commit is contained in:
parent
3a0fe6968d
commit
e90031b8d1
@ -111,6 +111,12 @@ var setHeaders = (function () {
|
||||
"Cross-Origin-Embedder-Policy": 'require-corp',
|
||||
});
|
||||
|
||||
if (Env.NO_SANDBOX) {
|
||||
applyHeaderMap(res, {
|
||||
"Cross-Origin-Resource-Policy": 'cross-origin',
|
||||
});
|
||||
}
|
||||
|
||||
// Don't set CSP headers on /api/config because they aren't necessary and they cause problems
|
||||
// when duplicated by NGINX in production environments
|
||||
if (/^\/api\/(broadcast|config)/.test(req.url)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user