Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Realized that passing only a host to `:check_origin` is not enough as the doc suggest, since it might also check scheme, host, and port against a URI. So this was not really working: `check_origin: ["my-app.fly.dev"]` I had to include the scheme as well: `check_origin: ["https://my-app.fly.dev"]`. The examples are clear but the rest of the doc is a bit misleading. See https://github.com/phoenixframework/phoenix/blob/5dba0bb6216e26fe5c48aafebad64d5f96da8868/lib/phoenix/socket/transport.ex#L616-L618
- Loading branch information