stuyy / expressjs-full-course

Express API featuring Authentication, OAuth2, Sessions, Testing, and more.
138 stars 48 forks source link

Can you please Answer my doubt? #3

Open Sypher0Dronzer opened 1 month ago

Sypher0Dronzer commented 1 month ago

I have used passport js for authentication and hosted the backend on render and frontend in netlify but there is an issue I am facing with the authentication not working after hosting, it works perfectly on local storage

There seems to be some cors error

I have been searching a solution to this error everywhere for a detailed question to what I am facing , heres a similar problem I came across on reddit https://www.reddit.com/r/node/comments/xw15iw/cors_issue_resolved_yet_cookie_is_still_not_being/

can you please address this issue @stuyy

stuyy commented 2 weeks ago

I need more information, the Reddit thread you posted does not provide any further context to what you are facing. Of course on your localhost, everything will work fine.

From what I am seeing in the Reddit thread, you are likely running into a non-https front-end talking to an https backend, or the other way around.