0

Fetch error Failed to fetch https://third-party-api-definition.s3.us-east-2.amazonaws.com/Vialogic-ThirdPartyServiceDefinition-1.0.0-resolved+(1).json Fetch error Possible cross-origin (CORS) issue? The URL origin (https://third-party-api-definition.s3.us-east-2.amazonaws.com) does not match the page (http://localhost:3002). Check the server returns the correct 'Access-Control-Allow-*' headers.

Hi everyone. i have encountered an issue of CORS error. If someone helps me out it will be highly appreciated.

we have our own swagger api's portal. link is https://app.swaggerhub.com/organizations/xyz

I want to fetch data from swagger api like https://petstore.swagger.io/v2/swagger.json

we have a dashboard built in react js. when i want to fetch data from swagger api using swagger UI node package manger. By installing CORS extension inside google chrome it works fine but when extension is off it gives me an error.

  • 2
    Does this answer your question? [Cross-origin resource sharing (CORS) concept](https://stackoverflow.com/questions/25310450/cross-origin-resource-sharing-cors-concept) (Or so many other questions and answers describing what CORS means and why the error occurs.) – David Mar 10 '23 at 12:00

0 Answers0