swagger-api / swagger-api/swagger-ui
CORS error
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
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.
Please have a look on the attach screenshots.


Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report concerns a React dashboard using the Swagger UI package to fetch https://petstore.swagger.io/v2/swagger.json. Start by reproducing the request with the browser extension disabled and inspect the browser's CORS error and network response. Done means the dashboard can fetch the Swagger API without requiring a browser extension.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- api, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100