From fc32690344a4762e9b08d7618a167c43a9dc7504 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Tue, 17 Sep 2013 10:50:49 -0400 Subject: Bug 916935 - Add Access-Control-Allow-Headers to REST API to indicate which HTTP headers can be used when making the request --- Bugzilla/WebService/Server/REST.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'Bugzilla/WebService') 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