Skip to content

Commit

Permalink
fix(cloud-function): remove deprecated X-XSS-Protection header (#9240)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani21 authored Jul 17, 2023
1 parent f67677d commit 4a02f2e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cloud-function/src/headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ export function setContentResponseHeaders(
{ csp = true, xFrame = true }: { csp?: boolean; xFrame?: boolean }
): void {
[
["X-XSS-Protection", "1; mode=block"],
["X-Content-Type-Options", "nosniff"],
["Strict-Transport-Security", "max-age=63072000"],
...(csp ? [["Content-Security-Policy", CSP_VALUE]] : []),
Expand All @@ -100,7 +99,6 @@ export function withRunnerResponseHeaders(
res: ServerResponse<IncomingMessage>
): void {
[
["X-XSS-Protection", "1; mode=block"],
["X-Content-Type-Options", "nosniff"],
["Clear-Site-Data", '"*"'],
["Strict-Transport-Security", "max-age=63072000"],
Expand Down

0 comments on commit 4a02f2e

Please sign in to comment.