CORS
This commit is contained in:
parent
83174ac9c4
commit
4279f9d296
|
|
@ -11,6 +11,7 @@ from app.db.session import engine
|
||||||
from app.models.base import Base
|
from app.models.base import Base
|
||||||
|
|
||||||
app = FastAPI(title=settings.project_name)
|
app = FastAPI(title=settings.project_name)
|
||||||
|
origins = ["http://localhost:3000", "http://0.0.0.0:3000"]
|
||||||
|
|
||||||
app.add_middleware(
|
app.add_middleware(
|
||||||
CORSMiddleware,
|
CORSMiddleware,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user