OData / OData/odataorg.github.io
services.odata.org/TripPinRESTierService ::: The server is incorrectly responding with two Access-Control-Allow-Origin
@mikepizzo is already working on this.
Since May 25, 2021.
- Dominant language
- HTML
- Stars
- 73
- Forks
- 106
- PR merge metrics
- No merged PRs in 30d
Description
It works with Postman and in browsers, but when using it in my js code to fetch data with fetch api or axios it throws error:
Access to fetch at 'https://services.odata.org/TripPinRESTierService/(S(negfbklwt4uhmeegv0o43zyh))/People' from origin 'http://127.0.0.1:5500' has been blocked by CORS policy: Response to preflight request doesn't pass access control check
The 'Access-Control-Allow-Origin' header contains multiple values '*, ', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
Contributor guide
No contributing guide indexed for this repository
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.
Assessment
This issue has not been assessed yet.