Hi everyone,
I am working on a React job search application, using the GitHub Jobs API, which has a same origin policy.
Here is a link to my github repo GitHub - camcgreen/jobstasy: Job search app. Built using Create React App, React Router, Firebase and GitHub Jobs API. Designed using Figma, with inspiration taken from Himalayas.
I am getting the CORS policy: No ‘Access-Control-Allow-Origin’ error when I deploy my app with Firebase but it is working fine when run locally.
I am prefixing my API calls with https://thingproxy.freeboard.io/fetch as a CORS anywhere type-approach for the sake of simplicity. My understanding was that this should work no matter what the origin of the request is (localhost or a live deployed site) but perhaps I have misunderstood.
I know this is commonly asked question but I can’t see what I’m doing wrong, so any help would be greatly appreciated!
Also apologies if I haven’t provided enough info, this is my first post here.
Thanks,
Cam