Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,8 +8,8 @@ app = Flask(__name__)
|
|
8 |
app.config['SECRET_KEY'] = 'your-secret-key' # Replace with a secure key
|
9 |
|
10 |
# Configure SocketIO with CORS for all origins and threading mode
|
11 |
-
socketio = SocketIO(app,
|
12 |
-
cors_allowed_origins="
|
13 |
async_mode='threading') # Use threading instead of eventlet
|
14 |
|
15 |
# Store game instances per client session
|
|
|
8 |
app.config['SECRET_KEY'] = 'your-secret-key' # Replace with a secure key
|
9 |
|
10 |
# Configure SocketIO with CORS for all origins and threading mode
|
11 |
+
socketio = SocketIO(app,
|
12 |
+
cors_allowed_origins="https://broadfield-dev-dungeon-game.hf.space", # Specify your Spaces URL
|
13 |
async_mode='threading') # Use threading instead of eventlet
|
14 |
|
15 |
# Store game instances per client session
|