Spaces:
Sleeping
Sleeping
allowed CORS
Browse files
main.py
CHANGED
@@ -11,7 +11,7 @@ origins = [
|
|
11 |
]
|
12 |
app.add_middleware(
|
13 |
CORSMiddleware,
|
14 |
-
allow_origins=
|
15 |
allow_credentials=True,
|
16 |
allow_methods=["*"],
|
17 |
allow_headers=["*"],
|
@@ -40,4 +40,4 @@ def automate_faster(info:str):
|
|
40 |
def write(content:str):
|
41 |
with open("latest_dataset.txt", "a") as f:
|
42 |
f.write(content)
|
43 |
-
return "nothing"
|
|
|
11 |
]
|
12 |
app.add_middleware(
|
13 |
CORSMiddleware,
|
14 |
+
allow_origins=["*"],
|
15 |
allow_credentials=True,
|
16 |
allow_methods=["*"],
|
17 |
allow_headers=["*"],
|
|
|
40 |
def write(content:str):
|
41 |
with open("latest_dataset.txt", "a") as f:
|
42 |
f.write(content)
|
43 |
+
return "nothing"
|