Skip to content

SpectacularSwaggerView behind a proxy #211

@maximebel

Description

@maximebel

Hello

SpectacularSwaggerView is using request.get_full_path() but it is not enough I think for servers behind a proxy.

It should either rely on x_forwarded headers or integrate FORCE_SCRIPT_NAME if defined.

My current issue is that Swagger can't load the script because the generated path is not complete.

No issue for redoc though

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions