fix: remove COEP
This commit is contained in:
parent
c8b8daeb29
commit
382f9b6e1b
@ -37,9 +37,7 @@ export const onRequest: PagesFunction<Env> = async context => {
|
|||||||
return new Response(body, {
|
return new Response(body, {
|
||||||
headers: {
|
headers: {
|
||||||
...Object.fromEntries(rsp.headers.entries()),
|
...Object.fromEntries(rsp.headers.entries()),
|
||||||
"cache-control": "public, max-age=60",
|
"cache-control": "public, max-age=60"
|
||||||
"Cross-Origin-Opener-Policy": "same-origin",
|
|
||||||
"Cross-Origin-Embedder-Policy": "require-corp",
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,10 @@ export class EventPublisher {
|
|||||||
this.#pubKey = pubKey;
|
this.#pubKey = pubKey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get signer() {
|
||||||
|
return this.#signer;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a NIP-07 EventPublisher
|
* Create a NIP-07 EventPublisher
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user