Summary: ^ flipper-server verifies the origin of incoming connections as a way of preventing any host from connecting to flipper. That's good. This change expand the list of allowed origins to include localhost:3000 which is the default origin for Electron apps. Error without this change: ``` Refused socket connection from cross domain request, origin: http://localhost:3000, host: localhost:52342. Expected origins: http://localhost:52342 or http://[::1]:52342 or http://::1:52342. Expected hosts: localhost:52342 or [::1]:52342 or ::1:52342 ``` Reviewed By: passy Differential Revision: D36440363 fbshipit-source-id: 883cadb49f245bca5d0a53a4f58c08cf45dd0189
flipper-server (TBD)
Stand alone Flipper server as NodeJS process, that uses flipper-server-core for device communication and also provides a webserver to serve flipper-ui.
Flipper-server can be used as background process, for example on CI servers or to power IDE plugins.
Running flipper server
From NPM
TODO:
From source
cd <Flipper checkout>/desktop
yarn install
yarn flipper-server
Production build from source
cd <Flipper checkout>/desktop
yarn install
yarn build:flipper-server
Pass the --open flag to open Flipper server after building
Use --no-rebuild-plugins to speed up subsequent builds if default plugins have been build already