-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Can't open my swagger.json #125
Comments
I suspect the issue is that I'm trying to add a spec using HTTPS but the fetch command isn't using the protocol. The Swagger JSON I'm trying to query isn't available on HTTP. The network tab in the debugger tools has the resource URL as HTTP |
@darrenhaken Can you please copy browser console or make a screenshot? |
@IvanGoncharov So I prepended the https://crossorigin.me/ and the resource was retrieved in the network tab so it does appear likely its a CORS issue. However after doing that I get the following error: |
@darrenhaken seems like you don't have |
@RomanGotsiy that seemed to be the issue and it's resolved now thanks! One last thing about the ReDoc UI; is there a way of adding auth headers when testing out the service? |
@darrenhaken if you need to document authentication headers you should probably use securityDefinitions. I'm closing this issue |
I tried using the following template to open a Swagger doc:
If I open the Petstore sample it works but my JSON file eventually times out and fails. There are no error messages to help me debug exactly why it's not working. Any clues?
The text was updated successfully, but these errors were encountered: