Fixed CORS error (#1216)
This commit is contained in:
commit
93ce4b3ef5
|
@ -9,7 +9,6 @@ const {
|
|||
getGitSha,
|
||||
convertToNextHeaderFormat,
|
||||
buildCSPHeader,
|
||||
COOP_COEP_HEADERS,
|
||||
WEB_SECURITY_HEADERS,
|
||||
CSP_DIRECTIVES,
|
||||
ALL_ROUTES,
|
||||
|
@ -64,7 +63,6 @@ module.exports = (phase) =>
|
|||
// Apply these headers to all routes in your application....
|
||||
source: ALL_ROUTES,
|
||||
headers: convertToNextHeaderFormat({
|
||||
...COOP_COEP_HEADERS,
|
||||
...WEB_SECURITY_HEADERS,
|
||||
...buildCSPHeader(CSP_DIRECTIVES),
|
||||
}),
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
/*
|
||||
Cache-Control: no-store, must-revalidate
|
||||
Cross-Origin-Embedder-Policy: require-corp
|
||||
Cross-Origin-Opener-Policy: same-origin
|
||||
Strict-Transport-Security: max-age=63072000
|
||||
X-Content-Type-Options: nosniff
|
||||
X-Download-Options: noopen
|
||||
|
|
Loading…
Reference in a new issue