Skip to content

Commit

Permalink
backend: 신뢰할 수 있는 호스트 미들웨어 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
kimtaejin3 committed Dec 13, 2024
1 parent 4e86988 commit 9dce3e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Binary file modified backend/__pycache__/main.cpython-313.pyc
Binary file not shown.
9 changes: 2 additions & 7 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,13 @@

app = FastAPI()

# 신뢰할 수 있는 호스트 설정
app.add_middleware(
TrustedHostMiddleware,
allowed_hosts=["port-0-grinda-rest-m4jhu7695910b72b.sel4.cloudtype.app"]
)

# CORS 미들웨어 설정에 HTTPS 스키마 명시
app.add_middleware(
CORSMiddleware,
allow_origins=[
"https://grinda-rest.vercel.app",
"https://port-0-grinda-rest-m4jhu7695910b72b.sel4.cloudtype.app"
"https://port-0-grinda-rest-m4jhu7695910b72b.sel4.cloudtype.app",
"http://localhost:3000"
],
allow_methods=["*"],
allow_headers=["*"],
Expand Down

0 comments on commit 9dce3e0

Please sign in to comment.