Commit d7e1d64d authored by Ai-Sasit's avatar Ai-Sasit

update http

parent a69426dc
import re
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from fastapi.middleware.httpsredirect import HTTPSRedirectMiddleware
from server.routes.scb_service import scb
from server.routes.user import user
......@@ -19,7 +17,7 @@ origins = [
"https://easybistro-office.web.app",
"https://easybistro-owner-manager.web.app",
]
app.add_middleware(HTTPSRedirectMiddleware)
app.add_middleware(
CORSMiddleware,
allow_origins=origins,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment