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

Port mismatch for resources #81

Open
mausch opened this issue May 18, 2015 · 1 comment
Open

Port mismatch for resources #81

mausch opened this issue May 18, 2015 · 1 comment

Comments

@mausch
Copy link

mausch commented May 18, 2015

I have a Flask app using this Swagger integration behind an internal load balancer in EC2, which I'm accessing in my local browser through SSH port forwarding.

Effectively, this means I enter http://localhost:8070/api/spec.html to access the Swagger endpoint. The problem is that all the resources in that HTML are linking to http://localhost:80 explicitly e.g. http://localhost/api/spec/_/static/swagger-ui.js, which means that they can't be loaded.

Is there any particular reason to avoid relative URLs here?

Thanks

@niall-byrne
Copy link
Collaborator

@mausch
I can see by looking at the demo that they are indeed using relative URLs.
In particular the base URL is formatted differently.

Does anyone want to weigh in on how important this issue is? (May was a long time ago..)

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