]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1098291: OPTION response for CORS requests to REST doesn't allow X-Requested...
authorDavid Lawrence <dkl@mozilla.com>
Mon, 22 Dec 2014 19:20:22 +0000 (19:20 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Mon, 22 Dec 2014 19:20:22 +0000 (19:20 +0000)
r=glob,a=glob

Bugzilla/WebService/Server/REST.pm

index ab3062c08865a9b73411c526ed1f019c1215800c..b3d35595f7837fbc0c6b6842c9e1c20cb07a8abc 100644 (file)
@@ -135,7 +135,7 @@ sub response {
 
     # Access Control
     $response->header("Access-Control-Allow-Origin", "*");
-    $response->header("Access-Control-Allow-Headers", "origin, content-type, accept");
+    $response->header("Access-Control-Allow-Headers", "origin, content-type, accept, x-requested-with");
 
     # ETag support
     my $etag = $self->bz_etag;