I’ve built a simple app using ReactJS. Here, I use the JS Fetch API to make a REST call to SpreadShirt’s API.
Basically, I am not receiving any information. The following information is displayed in the browser’s console:
Access to fetch at 'https://api.spreadshirt.net/api/v1/shops/100749149/sellables?mediaType=json' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.