fix(desktop): allow localhost origins in dev (#419)

Desktop dev uses Electron pages on random localhost ports, so the daemon must accept those websocket origins during local development.
This commit is contained in:
Edvard Chen
2026-04-16 10:34:30 +08:00
committed by GitHub
parent 1885d8602f
commit 0b3c29b2ec

View File

@@ -13,6 +13,11 @@ npm run build:main
EXPO_PORT=$("$ROOT_DIR/node_modules/.bin/get-port")
export EXPO_PORT
# Allow any origin in dev so Electron on random localhost ports can reach
# the daemon websocket. Safe here because this script is development-only
# and the daemon still binds to localhost.
export PASEO_CORS_ORIGINS="*"
echo "══════════════════════════════════════════════════════"
echo " Paseo Desktop Dev"
echo "══════════════════════════════════════════════════════"