geetu040 commited on
Commit
88a015a
·
1 Parent(s): e2f95ba

allowed CORS

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -11,7 +11,7 @@ origins = [
11
  ]
12
  app.add_middleware(
13
  CORSMiddleware,
14
- allow_origins=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"