Accepted answer

After reading about CORS and consulting with a professional, response headers must be updated to the following in order to fix the problem :

headers : {
        "Access-Control-Allow-Headers": "*",
        "Access-Control-Allow-Origin": "*",
        "Access-Control-Allow-Methods": "*"      

Of course, CORS must be enabled on API Gateway for each method used.


Try to enable credentiels for axios like this:

axios.defaults.withCredentials = true;

Related Query

More Query from same tag