Spaces:
Running
Running
fix: add localhost to allowedOrigins for A2A bridge WS connection
Browse filesThe A2A bridge connects via ws://127.0.0.1:7860 which OpenClaw
validates against controlUi.allowedOrigins. Added localhost origins.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- scripts/sync_hf.py +2 -0
scripts/sync_hf.py
CHANGED
|
@@ -420,6 +420,8 @@ class OpenClawFullSync:
|
|
| 420 |
allowed_origins = [
|
| 421 |
"https://huggingface.co",
|
| 422 |
"https://*.hf.space",
|
|
|
|
|
|
|
| 423 |
]
|
| 424 |
if SPACE_HOST:
|
| 425 |
allowed_origins.append(f"https://{SPACE_HOST}")
|
|
|
|
| 420 |
allowed_origins = [
|
| 421 |
"https://huggingface.co",
|
| 422 |
"https://*.hf.space",
|
| 423 |
+
"http://127.0.0.1:7860",
|
| 424 |
+
"http://localhost:7860",
|
| 425 |
]
|
| 426 |
if SPACE_HOST:
|
| 427 |
allowed_origins.append(f"https://{SPACE_HOST}")
|