adding Authorization to Access-Control-Allow-Headers

This commit is contained in:
Simon Martín
2019-01-10 16:56:07 +01:00
parent ff27e6744e
commit 644b4232ca
6 changed files with 32 additions and 20 deletions
+5 -2
View File
@@ -18,8 +18,11 @@ describe('raster', function() {
});
function checkCORSHeaders(res) {
assert.equal(res.headers['access-control-allow-headers'], 'X-Requested-With, X-Prototype-Version, X-CSRF-Token');
assert.equal(res.headers['access-control-allow-origin'], '*');
assert.equal(
res.headers['access-control-allow-headers'],
'X-Requested-With, X-Prototype-Version, X-CSRF-Token, Authorization'
);
assert.equal(res.headers['access-control-allow-origin'], '*');
}
var IMAGE_EQUALS_TOLERANCE_PER_MIL = 2;