Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
easybistro-api-docker
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sasit Wiratjinda
easybistro-api-docker
Commits
d7e1d64d
Commit
d7e1d64d
authored
Nov 23, 2022
by
Ai-Sasit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update http
parent
a69426dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
core.py
server/core.py
+1
-3
No files found.
server/core.py
View file @
d7e1d64d
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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment