Skip to content

Commit 95e6b08

Browse files
committed
Fix CORS OPTION handling
1 parent 1ddd75e commit 95e6b08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ exports.proxy = function(req, res, options, buffer){
7171
// Preflight request
7272
///////////////////////////////////
7373

74-
if( options.method.toUpperCase() === 'OPTIONS' ){
74+
if( req.method.toUpperCase() === 'OPTIONS' ){
7575
res.writeHead(204, "no content", {
7676
'access-control-allow-origin': '*',
7777
// 'Access-Control-Max-Age': 3600, // seconds

0 commit comments

Comments
 (0)