incognitolm commited on
Commit
0b0e156
·
verified ·
1 Parent(s): 4b492c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -7,14 +7,10 @@ app = FastAPI()
7
  # Enable CORS
8
  app.add_middleware(
9
  CORSMiddleware,
10
- allow_origins=["*"], # Allow all origins. Adjust to specific domains if needed.
11
  allow_credentials=True,
12
  allow_methods=["*"],
13
  allow_headers=["*"],
14
- Access-Control-Allow-Origin: *,
15
- Access-Control-Allow-Methods: GET, POST, OPTIONS,
16
- Access-Control-Allow-Headers: Content-Type,
17
-
18
  )
19
 
20
  games = {}
 
7
  # Enable CORS
8
  app.add_middleware(
9
  CORSMiddleware,
10
+ allow_origins=["*"],
11
  allow_credentials=True,
12
  allow_methods=["*"],
13
  allow_headers=["*"],
 
 
 
 
14
  )
15
 
16
  games = {}