Skip to content

Swagger-UI does not fully respect schemes (when using https) #2423

@hareesh-blippar

Description

@hareesh-blippar

Swagger UI version - 2.2.5
Swagger version - 2.0

The schemes portion of my spec is as shown below -

schemes:
  - https

I'm hosting Swagger UI, and my yaml openapi spec on an http server. My api server (which is documented using the openapi spec) on the other hand only accepts https (as clearly defined in the schemes portion of the spec which does not contain http).

However, the try it out feature of Swagger UI ends up making an http request to my api server instead of https!

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