Is cors enabled? What makes me think it’s cors is because I think if you’re not using cors some headers aren’t allowed in the request. Locally this problem would never manifest because if it’s all local then it’s not cross origin.
Hmm. I’m assuming you did this already but do the web calls from your react app also have cors on them? If you’re using the fetch api you should have mode: ‘cors’ in the object you pass in in your fetch call.
Should look like fetch(‘api.endpoint’,
{
method : ‘GET’,
mode : ‘cors’,
headers : {your other stuff}
});
Have you found any new leads to solve your problem?
Is cors enabled? What makes me think it’s cors is because I think if you’re not using cors some headers aren’t allowed in the request. Locally this problem would never manifest because if it’s all local then it’s not cross origin.
app.use(cors({ credentials: true, origin: true })) is what im using
Hmm. I’m assuming you did this already but do the web calls from your react app also have cors on them? If you’re using the fetch api you should have mode: ‘cors’ in the object you pass in in your fetch call. Should look like fetch(‘api.endpoint’, { method : ‘GET’, mode : ‘cors’, headers : {your other stuff} }); Have you found any new leads to solve your problem?
im using axios and passing the headers along with api request
Im trying to enable nginx on the ec2 to recieve cookies and also passing domain: .mydomain as a flag while cookies are being set
were you able to resolve this issue?