We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f0ccb2 commit eddb24dCopy full SHA for eddb24d
1 file changed
backend/app/api/routes/utils.py
@@ -4,6 +4,7 @@
4
from app.api.deps import get_current_active_superuser
5
from app.models import Message
6
from app.utils import generate_test_email, send_email
7
+from app.core.config import settings
8
9
router = APIRouter(prefix="/utils", tags=["utils"])
10
@@ -29,3 +30,10 @@ def test_email(email_to: EmailStr) -> Message:
29
30
@router.get("/health-check/")
31
async def health_check() -> bool:
32
return True
33
+
34
+@router.get("/cors-origins/")
35
+async def get_cors_origins() -> list[str]:
36
+ """
37
+ Get the CORS origins.
38
39
+ return settings.all_cors_origins
0 commit comments