Skip to content

Swagger UI is not showing UP in PROD #10712

@AbiCollinscork

Description

@AbiCollinscork

Q&A (please complete the following information)

  • OS: [Windows]
  • Browser: [e.g. chrome]
  • Version: [e.g. 22]
  • Method of installation: [e.g. npm, dist assets]
  • Swagger-UI version: [e.g. 3.10.0]
    flask-restx==1.3.0

?yourQueryStringConfig

swagger:1 Refused to apply style from '<servername>/swaggerui/droid-sans.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
swagger:1 Refused to apply style from '<servername>swaggerui/swagger-ui.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
swagger:1 Refused to execute script from '<servername>/swaggerui/swagger-ui-bundle.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
swagger:1 Refused to execute script from '<servername>/swaggerui/swagger-ui-standalone-preset.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
swagger:75 Uncaught ReferenceError: SwaggerUIBundle is not defined
    at window.onload (swagger:75:40)
### Screenshots

<img width="135" height="111" alt="Image" src="https://github.com/user-attachments/assets/14f34a2d-af13-48d4-b855-3b5e1006ad1d" />

### How can we help?
<!-- Need to know the fix for swagger UI showing in the ENV, seems like html, css ,js file sissue-->

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