I am setting up a React application that extracts from a public API. When I am testing the API in Postman, it works without problems. But if I use fetch()
in my React app, I get a CORS error.
As far as I have understood, my client request should be allowed on the server using headers. But I don't own the server hosting the API, so I cannot do anything on the server. The API is configured to be used by third party applications using an access code, so I am a bit confused why it's not allowed to extract from the API in React.
What are my options?