Skip to content

Allow configuring CSP frame-ancestors / X-Frame-Options for Hosted UI #70

@RSoeborg

Description

@RSoeborg

Please add support for configuring HTTP response headers for the WorkOS Hosted UI, specifically:

  • Content-Security-Policy (especially frame-ancestors)
  • X-Frame-Options

We are using the WorkOS Hosted UI for OAuth flows, where users are presented with a consent screen during the authorization process.

Our goal is to embed this consent screen inside an <iframe> within our own application. However, the current response headers prevent the Hosted UI from being framed, and there is no way to configure or override this behavior.

Provide a way to configure framing-related headers for the Hosted UI.

Specifically:

  • Ability to define allowed origins via Content-Security-Policy: frame-ancestors
  • Ability to disable or control X-Frame-Options so it does not block embedding from approved origins

This should be an explicit opt-in feature with a strict allowlist of trusted origins to avoid introducing clickjacking risks.

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