Update CORS configuration to allow all origins
This commit is contained in:
parent
a6f3c5a7b8
commit
b6ff3679e1
4
main.py
4
main.py
@ -23,8 +23,8 @@ app = FastAPI(
|
|||||||
# CORS middleware setup
|
# CORS middleware setup
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
allow_origins=[str(origin) for origin in settings.BACKEND_CORS_ORIGINS],
|
allow_origins=["*"], # Allow all origins
|
||||||
allow_credentials=True,
|
allow_credentials=False, # Must be False when using wildcard origins
|
||||||
allow_methods=["*"], # Allows all methods
|
allow_methods=["*"], # Allows all methods
|
||||||
allow_headers=["*"], # Allows all headers
|
allow_headers=["*"], # Allows all headers
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user