From 38b4ca010a472b5acfd7e4367260a9c4c5637334 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 16 Aug 2013 19:58:42 +0000 Subject: [PATCH] send_origin_headers() in admin-post.php. props nickdaugherty, fixes #24600. git-svn-id: https://develop.svn.wordpress.org/trunk@25036 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/admin-post.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wp-admin/admin-post.php b/src/wp-admin/admin-post.php index f4af998e33..6b5bdd353d 100644 --- a/src/wp-admin/admin-post.php +++ b/src/wp-admin/admin-post.php @@ -14,6 +14,9 @@ if ( defined('ABSPATH') ) else require_once('../wp-load.php'); +/** Allow for cross-domain requests (from the frontend). */ +send_origin_headers(); + require_once(ABSPATH . 'wp-admin/includes/admin.php'); nocache_headers();