Merge remote-tracking branch 'danrobinson/authorization-header'

This commit is contained in:
Christopher Jeffrey 2017-03-14 06:33:17 -07:00
commit 2a17362fa0
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -173,6 +173,7 @@ HTTPBase.prototype.cors = function cors() {
res.setHeader(
'Access-Control-Allow-Methods',
'GET,HEAD,PUT,PATCH,POST,DELETE');
res.setHeader('Access-Control-Allow-Headers', 'Authorization');
if (req.method === 'OPTIONS') {
res.setStatus(200);