Skip to content

Commit

Permalink
update CORS in test case
Browse files Browse the repository at this point in the history
  • Loading branch information
RaoHai committed Sep 15, 2024
1 parent 34000e9 commit 67aa0a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ env:
REPORT_FILE: md_report.md
WEB_URL: http://127.0.0.1:3000
API_URL: http://127.0.0.1:8000
CORS_ORIGIN_WHITELIST: http://localhost:8001,http://127.0.0.1:8001,http://localhost:3000
PETERCAT_ENV: unittest

jobs:
Expand Down
3 changes: 1 addition & 2 deletions server/auth/middleware.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from typing import Awaitable, Callable
from fastapi import HTTPException, Request, status
from fastapi.responses import JSONResponse, PlainTextResponse
from fastapi.responses import JSONResponse
from petercat_utils import get_env_variable
from starlette.middleware.base import BaseHTTPMiddleware
from starlette.responses import Response
from fastapi.security import OAuth2PasswordBearer
from starlette.datastructures import Headers

from core.dao.botDAO import BotDAO

Expand Down

0 comments on commit 67aa0a8

Please sign in to comment.