Skip to content

Commit

Permalink
Serhii milestone 2 fix (#60)
Browse files Browse the repository at this point in the history
* chores_lint_errors_and_path_issues

* feature_db_py

* fix_audio_issue

* chores_lint_error

* fix_openAPI_switching

* chore_module_insert

* fix_edit_collection_fix

* fix_frontend_critical_update

* fix_feedback2_translation_async

* chore:lint

* chore:loading_issue

* chore:module

* chore:version-python-socketio[asgi]

* chore:main.py

* chore:path

* test

* chore:apprunner

* chore:reverse

* fix:cors_error
  • Loading branch information
Serhii Ofii authored Oct 20, 2024
1 parent c291e69 commit 8c7358f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions linguaphoto/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ openai
requests
stripe
python-socketio

6 changes: 5 additions & 1 deletion linguaphoto/socket_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c7358f

Please sign in to comment.