]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 916935 - Add Access-Control-Allow-Headers to REST API to indicate which HTTP...
authorDave Lawrence <dlawrence@mozilla.com>
Tue, 17 Sep 2013 14:48:36 +0000 (10:48 -0400)
committerDave Lawrence <dlawrence@mozilla.com>
Tue, 17 Sep 2013 14:48:36 +0000 (10:48 -0400)
r/a=glob

Bugzilla/WebService/Server/REST.pm

index 4145455ecb517768b4dba77d386a174b37c66be3..2216911c906f77ee5b90d95f57d9a8dc9f93c568 100644 (file)
@@ -124,6 +124,7 @@ sub response {
 
     # Access Control
     $response->header("Access-Control-Allow-Origin", "*");
+    $response->header("Access-Control-Allow-Headers", "origin, content-type, accept");
 
     # ETag support
     my $etag = $self->bz_etag;