corsproxy
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -27,5 +27,5 @@ module.exports = function addCorsHeaders (request, reply) { | ||
response.statusCode = 200 | ||
if (request.headers['Allow-Control-Request-Headers']) { | ||
if (request.headers['access-control-request-headers']) { | ||
addAllowedHeaders( | ||
request.headers['Allow-Control-Request-Headers'].split(',') | ||
request.headers['access-control-request-headers'].split(',') | ||
) | ||
@@ -32,0 +32,0 @@ } |
{ | ||
"name": "corsproxy", | ||
"description": "standalone CORS proxy", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"main": "./index.js", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -18,4 +18,4 @@ # corsproxy | ||
- http://localhost:9292/localhost:3000/sign_in | ||
- http://localhost:9292/my.domain.com/path/to/resource | ||
- http://localhost:1337/localhost:3000/sign_in | ||
- http://localhost:1337/my.domain.com/path/to/resource | ||
- etc etc | ||
@@ -22,0 +22,0 @@ |
Sorry, the diff of this file is not supported yet
4428
8