The energy.gov platform needs CORS added to it in order to allow energyapps.github.io pages to reference energy.gov/api jsons and csv's through AJAX calls. Chauncey referenced this CORS module for drupal as a possible solution.
Let it be clear that for our purposes ONLY energy.gov/api needs to allow CORS access to energyapps.github.io. And even though energyapps.github.io is a 404, multiple subdomains will require pulling data from energy.gov/api in the future. These include https://energyapps.github.io/egallon-serve and https://energyapps.github.io/social
The energy.gov platform needs CORS added to it in order to allow
energyapps.github.io
pages to referenceenergy.gov/api
jsons and csv's through AJAX calls. Chauncey referenced this CORS module for drupal as a possible solution.Let it be clear that for our purposes ONLY
energy.gov/api
needs to allow CORS access toenergyapps.github.io
. And even thoughenergyapps.github.io
is a 404, multiple subdomains will require pulling data fromenergy.gov/api
in the future. These include https://energyapps.github.io/egallon-serve and https://energyapps.github.io/social