Spaces:
Running
Running
Commit ·
478b48c
1
Parent(s): 05bf324
Fix: add GitHub Pages and HF Space to default CORS origins
Browse files- backend/core/config.py +2 -1
backend/core/config.py
CHANGED
|
@@ -35,7 +35,8 @@ class Settings(BaseSettings):
|
|
| 35 |
# CORS CONFIGURATION
|
| 36 |
# =========================================================================
|
| 37 |
|
| 38 |
-
CORS_ORIGINS: str = os.getenv("CORS_ORIGINS", "http://localhost:3000")
|
|
|
|
| 39 |
|
| 40 |
@property
|
| 41 |
def cors_origins_list(self) -> list[str]:
|
|
|
|
| 35 |
# CORS CONFIGURATION
|
| 36 |
# =========================================================================
|
| 37 |
|
| 38 |
+
CORS_ORIGINS: str = os.getenv("CORS_ORIGINS", "http://localhost:3000,https://abinaze.github.io,https://abinazebinoy-verifile-x-api.hf.space")
|
| 39 |
+
|
| 40 |
|
| 41 |
@property
|
| 42 |
def cors_origins_list(self) -> list[str]:
|