Created
March 16, 2019 16:10
-
-
Save zacck-zz/1e6b404e612283cfeee978a232929ddc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Origin of the request: http://localhost:9098 | |
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_origin option when configuring your | |
endpoint or when configuring the transport in your | |
UserSocket module, explicitly outlining which origins | |
are allowed: | |
check_origin: ["https://example.com", | |
"//another.com:888", "//other.com"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment