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

Failed to load spec #2855

Closed
EvgenyOrekhov opened this issue Apr 4, 2017 · 1 comment
Closed

Failed to load spec #2855

EvgenyOrekhov opened this issue Apr 4, 2017 · 1 comment

Comments

@EvgenyOrekhov
Copy link

The master version of Swagger UI says "Failed to load spec" to all my specs.

Example spec: http://api.test4.twinshub.ru/swagger.json

Steps to reproduce:

  1. Clone the repo
  2. Open dist/index.html in a browser
  3. Paste http://api.test4.twinshub.ru/swagger.json into the "Explore" input
  4. Press "Explore"

2017-04-04-185222_742x384_scrot

@webron
Copy link
Contributor

webron commented Apr 4, 2017

This is a CORS issue. Please follow the guide at https://github.com/swagger-api/swagger-ui#cors-support.

@webron webron closed this as completed Apr 4, 2017
@lock lock bot locked and limited conversation to collaborators Jul 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants