Pantheon Community

CORS and Multiple Domains

Hi everyone, we’re using CORS and the Drupal JSON API to allow some external sites to read in some data via JavaScript from Drupal. However, there are multiple domains that we want to allow, and we can’t seem to get it to work. We think caching is an issue because we can do a hard-reload of the external page and see the change, but soft-refreshes of the other server give us CORS errors. We added a query parameter in the JavaScript that changes the the call to Drupal (added a timestamp, basically) and that seemed to work. But, does anyone have any experience or advice in this arena? Thank you!