Phoenix.Socket.Transport.check_origin/5

Parsed documentation:
View on GitHub
Checks the origin request header against the list of allowed origins.

Should be called by transports before connecting when appropriate.
If the origin header matches the allowed origins, no origin header was
sent or no origin was configured, it will return the given connection.

Otherwise a 403 Forbidden response will be sent and the connection halted.
It is a noop if the connection has been halted.
Suggestions:
Please help! Open an issue on GitHub if this assessment is incorrect.