Allow all origins 🤦🏼‍♂️

This commit is contained in:
Alan Rynne
2021-11-04 13:08:37 +01:00
parent dd02f26d0b
commit 6df659fbc5
+3 -2
View File
@@ -14,12 +14,13 @@ frontend_url = os.environ.get("FRONTEND_URL", "http://localhost:8080")
origins = [
"http://localhost",
"http://localhost:8080",
"https://speckle-aectech-masterclass.netlify.app"
"https://speckle-aectech-masterclass.netlify.app",
"http://speckle-aectech-masterclass.netlify.app"
]
app.add_middleware(
CORSMiddleware,
allow_origins=origins,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],