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:
@@ -13,6 +13,11 @@ npm run build:main
|
|||||||
EXPO_PORT=$("$ROOT_DIR/node_modules/.bin/get-port")
|
EXPO_PORT=$("$ROOT_DIR/node_modules/.bin/get-port")
|
||||||
export EXPO_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 "══════════════════════════════════════════════════════"
|
||||||
echo " Paseo Desktop Dev"
|
echo " Paseo Desktop Dev"
|
||||||
echo "══════════════════════════════════════════════════════"
|
echo "══════════════════════════════════════════════════════"
|
||||||
|
|||||||
Reference in New Issue
Block a user