Sample External Fetches
Here we will demonstrate some of the basics of Cross-Origin Resource Sharing (CORS). See MDN CORS.
I've two different sites that you can directly access data from.
-
https://cs651.grotto-networking.com/Tours which supplies tour information from an imaginary tour company that permits CORS of its tour info.
-
https://windsurf.grotto-networking.com/data/logs/windEvents2019.json Resource data used by the React web app that nicely show the data. This site does not permit CORS.
Open up the developer tool console to see more information.
Cooperating Site
JSON stringified information:
Non-Cooperating Site
JSON stringified information: