Browse Source

CORS FIX 2

main
Madiwka 1 year ago
parent
commit
e8d5be8ff0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/main.py

+ 1
- 1
app/main.py View File

@@ -22,7 +22,7 @@ def startup(): # start the project, and create the tables

origins = ["*"]
app = startup()
app.add_middleware(CORSMiddleware, allow_origins=origins, allow_credentials=True, allow_methods=["*"], allow_headers=["*"])
app.add_middleware(CORSMiddleware, allow_origins=origins, allow_credentials=True, allow_methods=["*"], allow_headers=["*"], expose_headers=["*"])

# Testing stuff
@app.get("/")


Loading…
Cancel
Save