diff --git a/packages/desktop/scripts/dev.sh b/packages/desktop/scripts/dev.sh index a4756af9a..540941b2a 100755 --- a/packages/desktop/scripts/dev.sh +++ b/packages/desktop/scripts/dev.sh @@ -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 "══════════════════════════════════════════════════════"