Untitled
Anonymous
plain_text
03/22/2025 5:09 PM
472 B
18
Indexable
from fastapi.middleware.cors import CORSMiddleware
app.add_middleware(
CORSMiddleware,
allow_origins=["*"], # Hoặc chỉ định các origin cụ thể
allow_credentials=True,
allow_methods=["*"], # Hoặc chỉ định các phương thức cụ thể
allow_headers=["*"], # Hoặc chỉ định các header cụ thể
)Editor is loading...
Leave a Comment