Permalink
Browse files

sockjs/sockjs-client#49 - support for 'null' origin

  • Loading branch information...
1 parent ace4427 commit 06a0537a1cfcbed597703b30eb865d7aa6202659 @majek majek committed Mar 6, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/sockjs_filters.erl
View
@@ -40,6 +40,7 @@ h_no_cache(Req, Headers) ->
xhr_cors(Req, Headers) ->
{OriginH, Req1} = sockjs_http:header('Origin', Req),
Origin = case OriginH of
+ "null" -> "*";
undefined -> "*";
O -> O
end,

0 comments on commit 06a0537

Please sign in to comment.