Fixed the CORS policy?
This commit is contained in:
parent
bd32940581
commit
8f9f786b23
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ from flask_socketio import SocketIO, emit, join_room, leave_room
|
||||||
|
|
||||||
# Flask app for REST API and WebSocket
|
# Flask app for REST API and WebSocket
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
socketio = SocketIO(app) # Initialize Flask-SocketIO
|
socketio = SocketIO(app, cors_allowed_origins="*") # Allow all origins
|
||||||
|
|
||||||
CHATPORT = 8181
|
CHATPORT = 8181
|
||||||
BUFFER_SIZE = 1024
|
BUFFER_SIZE = 1024
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue