diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2013-09-17 16:50:49 +0200 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2013-09-17 16:50:49 +0200 |
commit | fc32690344a4762e9b08d7618a167c43a9dc7504 (patch) | |
tree | 395a6fbe91a73290c194cb23e04c476b7486e738 | |
parent | 63a1d66888534a188525dc13a159908adcc86a67 (diff) | |
download | bugzilla-fc32690344a4762e9b08d7618a167c43a9dc7504.tar.gz bugzilla-fc32690344a4762e9b08d7618a167c43a9dc7504.tar.xz |
Bug 916935 - Add Access-Control-Allow-Headers to REST API to indicate which HTTP headers can be used when making the request
-rw-r--r-- | Bugzilla/WebService/Server/REST.pm | 1 |
1 files changed, 1 insertions, 0 deletions
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; |