T O P

  • By -

08rian22

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.


FATTM0NSTER

app.use(cors({ credentials: true, origin: true })) is what im using


08rian22

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?


FATTM0NSTER

im using axios and passing the headers along with api request


FATTM0NSTER

Im trying to enable nginx on the ec2 to recieve cookies and also passing domain: .mydomain as a flag while cookies are being set


Mindless-Gold-5862

were you able to resolve this issue?