Include frontend in container
This commit is contained in:
parent
85c4ac36a7
commit
041f7c1ac9
2 changed files with 13 additions and 13 deletions
|
@ -76,19 +76,6 @@ def create_app():
|
|||
static_files = StaticFiles(directory="static", html=True)
|
||||
root_app.mount(path="/", app=static_files)
|
||||
|
||||
origins = [
|
||||
"http://localhost",
|
||||
"http://localhost:5173",
|
||||
]
|
||||
|
||||
root_app.add_middleware(
|
||||
CORSMiddleware,
|
||||
allow_origins=origins,
|
||||
allow_credentials=True,
|
||||
allow_methods=["*"],
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
return root_app
|
||||
|
||||
app = create_app()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue