fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

8.7K
active users

Brian :python: :flask: :html5:

I have been beating my head on trying to get Flask-SocketIO to work with an existing app and accept connections from a third-party origin.

I get 400 errors because the socket closes before a connection can be made. I've disabled CORS (local-only network) and have double checked that every library is compatible. Serving a websocket route from the app works, but it will not other hosts.

Anyone with experience able to take a look at a repo or offer insight?

I decided to cut my losses and just write a standalone websocket server instead.

I have it working locally on two different hosts and ports, so tomorrow, I should be able to throw it on the network and then have nginx take care of proxying requests to the host as a location block.