Somrat Sorkar commited on
Commit
864ac02
·
1 Parent(s): aeb1d95

Disable Control UI auth requirement for HF Spaces

Browse files
Files changed (1) hide show
  1. start.sh +2 -0
start.sh CHANGED
@@ -155,6 +155,8 @@ CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".agents.defaults.model = \"$LLM_MODEL\""
155
  # Control UI origin (allow HF Space URL for web UI access)
156
  if [ -n "$SPACE_HOST" ]; then
157
  CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.controlUi.allowedOrigins = [\"https://${SPACE_HOST}\"]")
 
 
158
  fi
159
 
160
  # Telegram (supports multiple user IDs, comma-separated)
 
155
  # Control UI origin (allow HF Space URL for web UI access)
156
  if [ -n "$SPACE_HOST" ]; then
157
  CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.controlUi.allowedOrigins = [\"https://${SPACE_HOST}\"]")
158
+ # For HF Spaces: require token in query param or localStorage, but don't require explicit pairing
159
+ CONFIG_JSON=$(echo "$CONFIG_JSON" | jq ".gateway.controlUi.requireAuth = false")
160
  fi
161
 
162
  # Telegram (supports multiple user IDs, comma-separated)