Open
Description
23:08:48.538 [error] Could not check origen for Phoenix.Socket transport.
This happens when you are attempting a socket connection to
a different host than the one configured in your config/
files. For example, in development the host is configured
to "localhost" but you may be trying to access it from
"127.0.0.1". To fix this issue, you may either:
1. update [url: [host: ...]] to your actual host in the
config file for your current environment (recommended)
2. pass the :check_origen option when configuring your
endpoint or when configuring the transport in your
UserSocket module, explicitly outlining which origens
are allowed:
check_origen: ["https://example.com",
"//another.com:888", "//other.com"]
I run the app with Docker:
docker pull battlesnake/battle_snake
docker run -it -p 3000:3000 battlesnake/battle_snake
I then try to create a game with my snake URLs and get the above error message.
Note that everything works fine with the 2017 server. Docker app is running on 192.168.99.100. My LAN is 10.104.35.xxx. An online snake on a hosting site also gets the same error message.
Metadata
Metadata
Assignees
Labels
No labels