Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,10 +9,9 @@ app = FastAPI()
|
|
9 |
|
10 |
app.add_middleware(
|
11 |
CORSMiddleware,
|
12 |
-
allow_origins=["*"], #
|
13 |
-
|
14 |
-
|
15 |
-
allow_headers=["*"], # Allows all headers
|
16 |
)
|
17 |
|
18 |
class Box:
|
|
|
9 |
|
10 |
app.add_middleware(
|
11 |
CORSMiddleware,
|
12 |
+
allow_origins=["*"], # This allows all domains
|
13 |
+
allow_methods=["*"], # This allows all methods
|
14 |
+
allow_headers=["*"], # This allows all headers
|
|
|
15 |
)
|
16 |
|
17 |
class Box:
|