Netlify Deployment Access-Control-Allow-Origin

21 Views Asked by At

I have this react app on my git.

I am trying to use Netlify to deploy it, but API request doesn't work with Access-Control-Allow-Origin error.

enter image description here

I have been trying to find a solution on Netlify forums. I found few that suggested adding configuration using netlify.tomb or _headers files. I tried both - doesn't work. You can check configs that are written in those files on my git repo (link provided above). Besides, I changed from http to https - and it didn't give any results. Does anyone have any idea how to fix it?

0

There are 0 best solutions below