vasansr / pro-mern-stack-2

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

Chapter 12 Data from API section #27

Closed petelc closed 4 years ago

petelc commented 4 years ago

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

petelc commented 4 years ago

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