Closed benslv closed 2 years ago
CORS is set on the server. This means that Steam does not want front end applications to use their API. It is designed to only allow backend servers to call the API. Your app structure should be have your React app call your own backend, then that backend will call the Steam API, then forward that data back to your front end.
I was trying to use this library in a React application to query the games shared by a list of usernames but I seem to be getting blocked by CORS when resolving the usernames into IDs. The full error is as follows:
I tried force-enabling CORS with this addon and the application worked as expected.
Here's the code I'm running: