fix: set coop/coep in function mw

This commit is contained in:
Kieran 2024-01-19 13:12:39 +00:00
parent 7e88d96ddb
commit 72b98a4ab5
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -38,6 +38,8 @@ export const onRequest: PagesFunction<Env> = async context => {
headers: {
...Object.fromEntries(rsp.headers.entries()),
"cache-control": "public, max-age=60",
"Cross-Origin-Opener-Policy": "same-origin",
"Cross-Origin-Embedder-Policy": "require-corp",
},
});
}