Skip to content

Commit 7c8bfd2

Browse files
committed
Fix sockjs#177 fix CORS response for null origin
Don’t respond with Access-Control-Allow-Origin: * for Origin: null
1 parent cb9925c commit 7c8bfd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/trans-xhr.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ exports.app =
5757
return true
5858

5959
xhr_cors: (req, res, content) ->
60-
if !req.headers['origin'] or req.headers['origin'] is 'null'
60+
if !req.headers['origin']
6161
origin = '*'
6262
else
6363
origin = req.headers['origin']

0 commit comments

Comments
 (0)