broadfield-dev commited on
Commit
ff684fc
·
verified ·
1 Parent(s): 8c20f87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="*", # Allow all origins (or specify "https://broadfield-dev-dungeon-game.hf.space" for security)
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