Fixed CORS error (#1216)

This commit is contained in:
Abhinav Kumar 2023-06-30 16:07:18 +05:30 committed by GitHub
commit 93ce4b3ef5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View file

@ -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),
}),

View file

@ -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