Skip to content

Commit

Permalink
Apply Prettier Formatting Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bhavberi authored and github-actions[bot] committed Oct 28, 2024
1 parent 42ef4f7 commit c7b998d
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export function middleware(req) {
response.headers.set("X-Content-Type-Options", "nosniff");
response.headers.set("Referrer-Policy", "strict-origin-when-cross-origin");


// if logout cookie is set, log the user out
if (req.cookies.has("logout")) {
// clear logout cookie
Expand All @@ -66,7 +65,10 @@ export function middleware(req) {
contentSecurityPolicyHeaderValue,
);
responseRes.headers.set("X-Content-Type-Options", "nosniff");
responseRes.headers.set("Referrer-Policy", "strict-origin-when-cross-origin");
responseRes.headers.set(
"Referrer-Policy",
"strict-origin-when-cross-origin",
);
return redirectRes;
}

Expand All @@ -80,7 +82,10 @@ export function middleware(req) {
contentSecurityPolicyHeaderValue,
);
responseRes.headers.set("X-Content-Type-Options", "nosniff");
responseRes.headers.set("Referrer-Policy", "strict-origin-when-cross-origin");
responseRes.headers.set(
"Referrer-Policy",
"strict-origin-when-cross-origin",
);
return redirectRes;
}

Expand All @@ -103,7 +108,10 @@ export function middleware(req) {
contentSecurityPolicyHeaderValue,
);
responseRes.headers.set("X-Content-Type-Options", "nosniff");
responseRes.headers.set("Referrer-Policy", "strict-origin-when-cross-origin");
responseRes.headers.set(
"Referrer-Policy",
"strict-origin-when-cross-origin",
);
return redirectRes;
}

Expand All @@ -125,7 +133,10 @@ export function middleware(req) {
contentSecurityPolicyHeaderValue,
);
responseRes.headers.set("X-Content-Type-Options", "nosniff");
responseRes.headers.set("Referrer-Policy", "strict-origin-when-cross-origin");
responseRes.headers.set(
"Referrer-Policy",
"strict-origin-when-cross-origin",
);
return redirectRes;
}

Expand All @@ -138,7 +149,10 @@ export function middleware(req) {
contentSecurityPolicyHeaderValue,
);
responseRes.headers.set("X-Content-Type-Options", "nosniff");
responseRes.headers.set("Referrer-Policy", "strict-origin-when-cross-origin");
responseRes.headers.set(
"Referrer-Policy",
"strict-origin-when-cross-origin",
);
return redirectRes;
}

Expand Down

0 comments on commit c7b998d

Please sign in to comment.