score:1

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.

score:1

Try to enable credentiels for axios like this:

axios.defaults.withCredentials = true;

Related Query

More Query from same tag