Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Calling Api using Open Api Specs shows error Fails to Fetch

Here when i hit api using POSTMAN it works fine but as i use open api specs, hits api it show error Failed to fetch.

See screenshot:

6753-error.png

Error in Console is:

nikhilpurohit-eval-test.apigee.net/v1/corsconversion Failed to load resource: the server responded with a status of 404 (Resource not found) c3Rvc-ZG9j-76984:1 Failed to load https://nikhilpurohit-eval-test.apigee.net/v1/corsconversion: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://apigee.com' is therefore not allowed access.

The response had HTTP status code 404. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

I attached my revision copy as well as ope api specs

corsconversion-rev1-2018-04-13.zip

openspecs.txt

Thanks

Nikhil Purohit

0 10 3,556
10 REPLIES 10