diff --git a/admin_menu.module b/admin_menu.module index 21bff9f..9ab5a35 100644 --- a/admin_menu.module +++ b/admin_menu.module @@ -338,6 +338,8 @@ function admin_menu_js_cache() { $cache = drupal_page_get_cache(); if (is_object($cache)) { header('X-Drupal-Cache: HIT'); + header('Access-Control-Allow-Origin:' . $base_url); + // Restore the metadata cached with the page. $_GET['q'] = $cache->data['path']; date_default_timezone_set(drupal_get_user_timezone()); @@ -350,6 +352,7 @@ function admin_menu_js_cache() { // Otherwise, create a new page response (that will be cached). header('X-Drupal-Cache: MISS'); + header('Access-Control-Allow-Origin:' . $base_url); // The Expires HTTP header is the heart of the client-side HTTP caching. The // additional server-side page cache only takes effect when the client