Spaces:
Running
Running
feat: allow huggingface.co as an origin for the control UI in start.sh
Browse files
start.sh
CHANGED
|
@@ -258,7 +258,7 @@ fi
|
|
| 258 |
|
| 259 |
# Control UI origin (allow HF Space URL for web UI access)
|
| 260 |
if [ -n "$SPACE_HOST" ]; then
|
| 261 |
-
CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.controlUi.allowedOrigins = [\"https://${SPACE_HOST}\"]")
|
| 262 |
fi
|
| 263 |
|
| 264 |
# Disable device auth (pairing) for headless Docker — token-only auth
|
|
|
|
| 258 |
|
| 259 |
# Control UI origin (allow HF Space URL for web UI access)
|
| 260 |
if [ -n "$SPACE_HOST" ]; then
|
| 261 |
+
CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.controlUi.allowedOrigins = [\"https://${SPACE_HOST}\", \"https://huggingface.co\"]")
|
| 262 |
fi
|
| 263 |
|
| 264 |
# Disable device auth (pairing) for headless Docker — token-only auth
|