Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swagger-UI requests the swagger spec over plain HTTP even with an HTTPS url defined #1507

Closed
emanuil-tolev opened this issue Aug 3, 2015 · 1 comment

Comments

@emanuil-tolev
Copy link

I'm building the url param passed to the SwaggerUI constructor dynamically:

var url = current_scheme + '//' + current_domain + "/api/v1/swagger.json";
console.log(url);
window.swaggerUi = new SwaggerUi({
url: url,
...

console.log-ing that results in https://mysite.org/api/v1/swagger.json

Yet the request is always made to http://mysite.org/api/v1/swagger.json over plain HTTP. This breaks on production for me since the whole site is served over blanket HTTPS. Anything I can do to convince swagger-ui to actually request the swagger spec from the URL passed in :)?

(This may actually be a swagger-js issue but I'm really not familiar enough with this set of projects yet to be able to tell that on my own.)

@webron
Copy link
Contributor

webron commented Mar 20, 2017

This should no longer be an issue with 3.0. Please reopen if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants