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
|
||||
app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=[str(origin) for origin in settings.BACKEND_CORS_ORIGINS],
|
||||
allow_credentials=True,
|
||||
allow_origins=["*"], # Allow all origins
|
||||
allow_credentials=False, # Must be False when using wildcard origins
|
||||
allow_methods=["*"], # Allows all methods
|
||||
allow_headers=["*"], # Allows all headers
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user