vasansr / pro-mern-stack-2

Code listing for the book Pro MERN Stack, 2nd Edition
https://www.apress.com/book/9781484243909
329 stars 190 forks source link

Chapter #14 Cookie Domain - Authorization Error #29

Closed siricoa94 closed 4 years ago

siricoa94 commented 4 years ago

Not quite sure what I am doing wrong. I have a screenshot providing my code where the changes are made as well as my google developer console. I also included a screenshot of the error google sends back when attempting to sign in. Screenshot (51)

Also, the error in the developer console states -

"Access to fetch at 'http://api.promernstack.com:3000/auth/signin' from origin 'http://api.promernstack.com:8000' has been blocked by CORS policy".

I believe I made all the necessary changes but I might have overlooked something.

siricoa94 commented 4 years ago

was hitting wrong endpoint in browser. "http://api.promernstack.com:8000" should have been "http://ui.promernstack.com:8000".