chore: -sec for now
This commit is contained in:
parent
066abec937
commit
2204c2cdbf
|
@ -64,10 +64,6 @@ function handleBotRequest(
|
|||
const stream = createReadableStreamFromReadable(body);
|
||||
|
||||
responseHeaders.set("Content-Type", "text/html");
|
||||
// security
|
||||
responseHeaders.set("Cross-Origin-Embedder-Policy", "require-corp");
|
||||
responseHeaders.set("Cross-Origin-Opener-Policy", "same-origin");
|
||||
responseHeaders.set("Cross-Origin-Resource-Policy", "same-site");
|
||||
|
||||
resolve(
|
||||
new Response(stream, {
|
||||
|
@ -118,6 +114,11 @@ function handleBrowserRequest(
|
|||
const stream = createReadableStreamFromReadable(body);
|
||||
|
||||
responseHeaders.set("Content-Type", "text/html");
|
||||
// security
|
||||
// responseHeaders.set("Cross-Origin-Embedder-Policy", "require-corp");
|
||||
// responseHeaders.set("Cross-Origin-Opener-Policy", "same-origin");
|
||||
// responseHeaders.set("Cross-Origin-Resource-Policy", "same-site");
|
||||
// responseHeaders.set("Content-Security-Policy", "default-src 'self'");
|
||||
|
||||
resolve(
|
||||
new Response(stream, {
|
||||
|
|
Loading…
Reference in New Issue
Block a user