mirror of
https://github.com/zadam/trilium.git
synced 2026-02-23 06:04:25 +01:00
chore(client-standalone): try to use plain header file
This commit is contained in:
parent
7433ca069f
commit
8b6da981f7
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;
|
|
||||||
};
|
|
||||||
Loading…
x
Reference in New Issue
Block a user