I am not able to test the resource in SPECS Editor created in APIgee, however in postman it is successful

Not applicable

I have just started using APIgee and came across a strange problem. Created a backend resource[rest api] in java using spring and swagger fox and i am able to test it from swagger-ui(/v2/api-docs). However when i imported SPEC in to APIGEE, i am not able to test it through Specs Editor. Then i tried using editor.swagger.io..even there i am not able to test this spec and i am getting error as "TypeError: Failed to fetch" However to my surprise, after creating Proxy in API with same spec, i am able to test proxy in Trace tool as well as postman. May i know if it is a bug or i am missing something here.

0 1 172
1 REPLY 1

@Manoj Shori

The cryptic error "TypeError: Failed to fetch" is because your proxy does not support CORS.

Add support for CORS for OPTIONS pre-flight request and for both successful and error responses.