Skip to content

Swagger Docs not loading when using custom path #1352

@thedevd

Description

@thedevd

Describe the bug
I am running guardrais-ai swagger on custom path /my-guardrail, and when I load swagger docs using https://10.x.x.x/my-guardrail/docs, the loading fails due to blocked:csp as this tries to load swagger-ui.css and swagger-ui-bundle.js from internet (cross origin)

Image Image

To Reproduce
Steps to reproduce the behavior:

  1. Run guardrails ai using custom path
  2. Open the swagger docs https://10.x.x.x/my-guardrail/docs

Expected behavior
Swagger document should load

Library version:
0.6.7

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions