server/main.py
def check_origin(self, origin):
        """
        When hosting the client code from a separate url, it is
        required to explicitly allow origins to connect via the
        web socket. Any other domain will receive a 403

        An alternative approach could use url parsing:
            parsed_origin = urllib.parse.urlparse(origin)
            return parsed_origin.netloc.endswith(".mydomain.com")
        """
        return origin == "http://localhost:3000"

        When hosting the client code from a separate url, it is
        required to explicitly allow origins to connect via the
        web socket. Any other domain will receive a 403

        An alternative approach could use url parsing:
            parsed_origin = urllib.parse.urlparse(origin)
            return parsed_origin.netloc.endswith(".mydomain.com")
        
When hosting the client code from a separate url, it is
required to explicitly allow origins to connect via the
web socket. Any other domain will receive a 403


When hosting the client code from a separate url it is required to explicitly allow origins to connect via the web socket . Any other domain will receive a 403
def check_origin(self, origin):
        return origin == "http://localhost:3000"
def check_origin ( self , origin ) : return origin == "http://localhost:3000"
When hosting the client code from a separate url, it is
required to explicitly allow origins to connect via the
web socket.
When hosting the client code from a separate url it is required to explicitly allow origins to connect via the web socket .
"""
        When hosting the client code from a separate url, it is
        required to explicitly allow origins to connect via the
        web socket. Any other domain will receive a 403

        An alternative approach could use url parsing:
            parsed_origin = urllib.parse.urlparse(origin)
            return parsed_origin.netloc.endswith(".mydomain.com")
        """
self
origin