Spaces:
Running
Running
fix(cors): align Space API CORS origins with web production, local dev, and Capacitor
Browse filesUpdate _DEFAULT_CORS_ORIGINS in hf-crowncode-backend app/main.py to match the primary backend allowlist for hasan-arthur-altuntas.xyz, localhost, 127.0.0.1:3000, and Capacitor clients.
- app/main.py +3 -0
app/main.py
CHANGED
|
@@ -30,6 +30,9 @@ logger = get_logger(__name__)
|
|
| 30 |
|
| 31 |
_DEFAULT_CORS_ORIGINS = (
|
| 32 |
"http://localhost:3000,"
|
|
|
|
|
|
|
|
|
|
| 33 |
"https://hasan-arthur-altuntas.xyz,"
|
| 34 |
"https://www.hasan-arthur-altuntas.xyz"
|
| 35 |
)
|
|
|
|
| 30 |
|
| 31 |
_DEFAULT_CORS_ORIGINS = (
|
| 32 |
"http://localhost:3000,"
|
| 33 |
+
"http://127.0.0.1:3000,"
|
| 34 |
+
"http://localhost,"
|
| 35 |
+
"capacitor://localhost,"
|
| 36 |
"https://hasan-arthur-altuntas.xyz,"
|
| 37 |
"https://www.hasan-arthur-altuntas.xyz"
|
| 38 |
)
|