Spaces:
Build error
Build error
Youngger9765 Claude Happy commited on
Commit ·
3b3c9f5
1
Parent(s): 77b7140
fix: add HuggingFace domains to ALLOWED_ORIGINS
Browse files- Add youngtsai-career-app.hf.space to CORS allowed origins
- Add huggingface.co domain for embedded iframe support
- Keep API_ADMIN_KEY as required (should be set in HF Spaces secrets)
- Fix line length for flake8 compliance
Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
- backend/config.py +6 -1
backend/config.py
CHANGED
|
@@ -23,7 +23,12 @@ class Settings(BaseSettings):
|
|
| 23 |
# Application
|
| 24 |
ENVIRONMENT: str = "development"
|
| 25 |
API_ADMIN_KEY: str
|
| 26 |
-
ALLOWED_ORIGINS: str =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
# Vector Search
|
| 29 |
VECTOR_DIMENSIONS: int = 1536
|
|
|
|
| 23 |
# Application
|
| 24 |
ENVIRONMENT: str = "development"
|
| 25 |
API_ADMIN_KEY: str
|
| 26 |
+
ALLOWED_ORIGINS: str = (
|
| 27 |
+
"http://localhost:3000,"
|
| 28 |
+
"http://localhost:7860,"
|
| 29 |
+
"https://youngtsai-career-app.hf.space,"
|
| 30 |
+
"https://huggingface.co"
|
| 31 |
+
)
|
| 32 |
|
| 33 |
# Vector Search
|
| 34 |
VECTOR_DIMENSIONS: int = 1536
|