Skip to content

Commit

Permalink
fix: set secure headers
Browse files Browse the repository at this point in the history
  • Loading branch information
sushichan044 committed Mar 10, 2025
1 parent 35d21e6 commit 91076a6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,15 @@ export default async function handleRequest(
routerContext,
loadContext,
);

response.headers.set(
"Strict-Transport-Security",
"max-age=63072000; includeSubDomains; preload",
);
response.headers.set("Referrer-Policy", "strict-origin-when-cross-origin");
response.headers.set("X-Content-Type-Options", "nosniff");
response.headers.set("X-Frame-Options", "DENY");
response.headers.set("X-Permitted-Cross-Domain-Policies", "none");

return response;
}

0 comments on commit 91076a6

Please sign in to comment.