How to make BrowserSync work with an nginx proxy server?
问题 (If needed, please see my last question for some more background info.) I'm developing an app that uses a decoupled front- and backend: The backend is a Rails app (served on localhost:3000 ) that primarily provides a REST API. The frontend is an AngularJS app, which I'm building with Gulp and serving locally (using BrowserSync) on localhost:3001 . To get the two ends to talk to each other, while honoring the same-origin policy, I configured nginx to act as a proxy between the two, available