chore: -sec for now

This commit is contained in:
cha0s 2024-10-02 17:49:13 -05:00
parent 066abec937
commit 2204c2cdbf

View File

@ -64,10 +64,6 @@ function handleBotRequest(
const stream = createReadableStreamFromReadable(body); const stream = createReadableStreamFromReadable(body);
responseHeaders.set("Content-Type", "text/html"); 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( resolve(
new Response(stream, { new Response(stream, {
@ -118,6 +114,11 @@ function handleBrowserRequest(
const stream = createReadableStreamFromReadable(body); const stream = createReadableStreamFromReadable(body);
responseHeaders.set("Content-Type", "text/html"); 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( resolve(
new Response(stream, { new Response(stream, {