mirror of
https://github.com/zadam/trilium.git
synced 2026-05-06 20:06:19 +02:00
chore(client-standalone): try to use plain header file
This commit is contained in:
3
apps/client-standalone/public/_headers
Normal file
3
apps/client-standalone/public/_headers
Normal file
@@ -0,0 +1,3 @@
|
||||
/*
|
||||
Cross-Origin-Opener-Policy: same-origin
|
||||
Cross-Origin-Embedder-Policy: require-corp
|
||||
@@ -1,6 +0,0 @@
|
||||
export const onRequest = async (context) => {
|
||||
const response = await context.next();
|
||||
response.headers.set("Cross-Origin-Opener-Policy", "same-origin");
|
||||
response.headers.set("Cross-Origin-Embedder-Policy", "require-corp");
|
||||
return response;
|
||||
};
|
||||
Reference in New Issue
Block a user