So I'm using a third party API in my front-end application. I was having some CORS issues. Since it's a public API, I contacted the API maintainers to ask them to lift the CORS control. They've done it, seemingly by putting a *
to Access-Control-Allow-Origin
.
It would be perfect but... since this (old) API require authentification, it's using cookies and now I get this error (see title).
My application being in React, I'm using Axios
with a
myApiRequest.defaults.withCredentials = true;
line.
Is there any way to do it in a front-end application or is back-end the only way to do it ?
Thanks !