energyapps / egallon-serve

egallon to be served by pym
0 stars 2 forks source link

Add CORS module to Drupal environment #2

Open DanielJWood opened 7 years ago

DanielJWood commented 7 years ago

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

chaunceyt commented 7 years ago

We've decided to manage this via apache conf file and Ansible.