diff --git a/linguaphoto/requirements.txt b/linguaphoto/requirements.txt index 0bde136..f968e98 100644 --- a/linguaphoto/requirements.txt +++ b/linguaphoto/requirements.txt @@ -41,3 +41,4 @@ openai requests stripe python-socketio + diff --git a/linguaphoto/socket_manager.py b/linguaphoto/socket_manager.py index f178be2..9da52c6 100644 --- a/linguaphoto/socket_manager.py +++ b/linguaphoto/socket_manager.py @@ -7,7 +7,11 @@ # Create a new Socket.IO server with CORS enabled sio = socketio.AsyncServer( async_mode="asgi", - cors_allowed_origins=[settings.homepage_url], # Update this to match your frontend URL + cors_allowed_origins=[ + settings.homepage_url, + "https://linguaphoto.com", + "https://www.linguaphoto.com", + ], # Update this to match your frontend URL ) # Dictionary to store connected users by their socket ID