Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support for Content Security Policy Header #32123

@jamesshuriff

Description

@jamesshuriff

Description

Keycloak's security headers functionality does not currently support the form-action, script-src, and style-src CSP directives. This enhancement:

  • Adds support for form-action, script-src, style-src.
  • Updates the default CSP to be much stronger.
  • Defines a NonceBean to inject style and script nonces into FreeMarker templates.
  • Updates built-in templates with nonces.
  • Supports on-the-fly generation of CSP directives for the browser history helper, OIDC form redirect, OIDC iframe endpoints, and the SAML POST binding redirect.

Discussion

No response

Motivation

No response

Details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions