Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add additional security headers
regalijan committed Oct 19, 2023
1 parent 6f250ca commit b5135ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions functions/_middleware.ts
@@ -102,10 +102,13 @@ async function setHeaders(context: RequestContext) {
"Wintervale",
];

response.headers.set("Permissions-Policy", "clipboard-write=(self), interest-cohort=()");
response.headers.set("Referrer-Policy", "same-origin");
response.headers.set(
"RTV",
rtvValues[Math.round(Math.random() * (rtvValues.length - 1))]
);
response.headers.set("X-Frame-Options", "SAMEORIGIN");
response.headers.set("X-XSS-Protection", "1; mode=block");

return response;

0 comments on commit b5135ce

Please sign in to comment.