http: add Authorization to allowed headers
This commit is contained in:
parent
667b0e746d
commit
814a77f11c
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user