Export the endpoint that will use CURL to GET the homepage.
The script plucks out the demo API key, sets the headers to allow "origins" that are contained list of known hosts, and responds to them with a JSON payload that contains the origin and the demo key.