Skip to content

Commit afc0a30

Browse files
authored
fix: update the allowHeaders list to match @isomorphic-git/cors-proxy (#7)
1 parent 3dfad00 commit afc0a30

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cors.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const allowHeaders = [
1414
'range',
1515
'referer',
1616
'user-agent',
17+
'x-authorization',
1718
'x-http-method-override',
1819
'x-requested-with',
1920
]
@@ -33,6 +34,7 @@ const exposeHeaders = [
3334
'transfer-encoding',
3435
'vary',
3536
'x-github-request-id',
37+
'x-redirected-url',
3638
]
3739
const allowMethods = [
3840
'POST',
@@ -47,4 +49,4 @@ const cors = require('micro-cors')({
4749
origin
4850
})
4951

50-
module.exports = cors
52+
module.exports = cors

0 commit comments

Comments
 (0)