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:
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
Thanks
Nikhil Purohit