mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -04:00
fix coep headerse
This commit is contained in:
parent
6e9ce2238c
commit
f59766b79c
2 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,9 @@ const fastify = Fastify({
|
|||
serverFactory: (handler) => {
|
||||
return createServer()
|
||||
.on("request", (req, res) => {
|
||||
res.setHeader("Cross-Origin-Opener-Policy", "same-origin");
|
||||
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp");
|
||||
|
||||
if (bare.shouldRoute(req)) {
|
||||
bare.routeRequest(req, res);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue