swagger-api / validator-badge

Validate your Swagger JSON/YAML today!
http://swagger.io
Apache License 2.0
210 stars 85 forks source link

Unable to validate my url #151

Open JFCote opened 5 years ago

JFCote commented 5 years ago

When I try my spec url: https://cs-dev.business.stingray.com/assets/swagger.yaml

I get this error:

Failed to load API definition.
Errors
Hide

Fetch errorFailed to fetch https://cs-dev.business.stingray.com/assets/swagger.yaml
Fetch errorPossible cross-origin (CORS) issue? The URL origin (https://cs-dev.business.stingray.com) does not match the page (http://validator.swagger.io). Check the server returns the correct 'Access-Control-Allow-*' headers.

Is there something wrong in the response header that I need to change? Is that a bug on your side? The documentation of validator-badge specifically specify this: Since the validator uses a browserless back-end to fetch the contents and schema, it's not subject to the terrible world of CORS.

JFCote commented 3 years ago

@gracekarina is this project still alive?