Skip to content

Default headers with FastAPI docs #43

@remimd

Description

@remimd

Using SecureASGIMiddleware with Secure.with_default_headers() on a FastAPI app breaks /docs and /redoc: the BALANCED CSP blocks the CDN-hosted JS/CSS and inline styles those pages rely on.

Is there an existing solution I missed, or would it make sense to add something like a Secure.allow_fastapi_docs() method?

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