Skip to content

Commit 21744de

Browse files
committed
testing cors
1 parent 541a4ab commit 21744de

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.idea/workspace.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Server.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class Settings(BaseSettings):
3131
app = Flask(__name__)
3232
app.config['SECRET_KEY'] = "test key"
3333
#
34-
socketio = SocketIO(app, message_queue=f'{REDIS_IP}:{REDIS_PORT}')
34+
socketio = SocketIO(app, message_queue=f'{REDIS_IP}:{REDIS_PORT}', cors_allowed_origins="*",
35+
cors_allowed_method=['DELETE', 'GET', 'OPTIONS', 'PATCH', 'POST', 'PUT'])
3536

3637
users_in_room = {}
3738
rooms_sid = {}

0 commit comments

Comments
 (0)