vasansr / pro-mern-stack-2

Code listing for the book Pro MERN Stack, 2nd Edition

Home Page:https://www.apress.com/book/9781484243909

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chapter 12 Data from API section

petelc opened this issue · comments

I completed the Data from API section and now when i run the application it throws an error "Unable to Fetch data". Looking in the Chrome dev tools shows that it is blocking it because of the CORS policy. However the cors policy is set to false in the api? Is there something else I am missing?

Note that the application ran fine up to this point. and that the about page renders properly with the unknown

Evidently i was missing a # in front of the cors env variable