Skip to content

Remove X-XSS-Protection header #15344

@jforce

Description

@jforce

We should not set the X-XSS-Protection header. That header is now deprecated and should not be set. We should remove the following line in totality:

// Ancient weak protection against reflected XSS (equivalent to CSP no unsafe-inline)
w.Header().Set("X-XSS-Protection", "1; mode=block")

See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/X-XSS-Protection

Also see another issue I raised here: openshift/oauth-server#195

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions