http: add Authorization to allowed headers

This commit is contained in:
Dan Robinson 2017-03-13 23:44:12 -07:00
parent 667b0e746d
commit 814a77f11c

View File

@ -96,6 +96,7 @@ HTTPServer.prototype._init = function _init() {
res.setHeader(
'Access-Control-Allow-Methods',
'GET,HEAD,PUT,PATCH,POST,DELETE');
res.setHeader("Access-Control-Allow-Headers", "Authorization");
if (req.method === 'OPTIONS') {
res.statusCode = 200;