We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40a1f05 commit 743e468Copy full SHA for 743e468
lib/code_corps_web/channels/user_socket.ex
@@ -6,7 +6,8 @@ defmodule CodeCorpsWeb.UserSocket do
6
7
## Transports
8
transport :websocket, Phoenix.Transports.WebSocket,
9
- timeout: 45_000
+ timeout: 45_000,
10
+ check_origin: Application.get_env(:code_corps, :allowed_origins)
11
# transport :longpoll, Phoenix.Transports.LongPoll
12
13
# Socket params are passed from the client and can
0 commit comments