From 777e09ba5f6b68035a78e57a9a55734bc646b445 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Tue, 17 Sep 2013 10:48:36 -0400 Subject: Bug 916935 - Add Access-Control-Allow-Headers to REST API to indicate which HTTP headers can be used when making the request r/a=glob --- Bugzilla/WebService/Server/REST.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'Bugzilla') diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm index 4145455ec..2216911c9 100644 --- a/Bugzilla/WebService/Server/REST.pm +++ b/Bugzilla/WebService/Server/REST.pm @@ -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; -- cgit v1.2.3-24-g4f1b