Skip to content

Commit

Permalink
FG-78: Run insecure content from websockets when HTTPS used
Browse files Browse the repository at this point in the history
- extend condition to handle cases of using wss when https is used
  • Loading branch information
ignat-s committed Nov 27, 2014
1 parent 5f77913 commit d7e121d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
});
sync(new Wamp({
secure: {{ app.request.headers.get('X-Forwarded-Proto') == 'https' ? 'true' : 'false' }},
secure: {{ app.request.headers.get('X-Forwarded-Proto') == 'https' or app.request.isSecure() ? 'true' : 'false' }},
host: '{{ ws.host == '*' ? app.request.headers.get('host') : ws.host }}',
port: {{ ws.port|json_encode|raw }},
maxRetries: 3,
Expand Down

0 comments on commit d7e121d

Please sign in to comment.