Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (13 sloc) 846 Bytes

React environment variales

https://create-react-app.dev/docs/adding-custom-environment-variables/

note: you will need to stop and restart the npm start create-react-app development environment/server to see this change

The app now has a fetch call to get the dogs programmed, but it doesn't work

because of CORS!!!!! 😡

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

BROWSERS implement this for security reasons

https://en.wikipedia.org/wiki/Cross-origin_resource_sharing

To fix it you program your server to speak to certain clients that it recognizes

IOW server uses HTTP headers and sometimes also a response to an OPTIONS request to say who's allowed to connect and what they're allowed to do

SEMANTIC UI -- fun library of Graphical UI components that are very easy to use and customize

https://react.semantic-ui.com/