Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,14 +7,10 @@ app = FastAPI()
|
|
| 7 |
# Enable CORS
|
| 8 |
app.add_middleware(
|
| 9 |
CORSMiddleware,
|
| 10 |
-
allow_origins=["*"],
|
| 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 = {}
|