somratpro commited on
Commit
5b27133
·
1 Parent(s): 84bc607

feat: allow huggingface.co as an origin for the control UI in start.sh

Browse files
Files changed (1) hide show
  1. start.sh +1 -1
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