nparashuram / cordova-plugin-browsersync

BrowserSync Plugin for Cordova
110 stars 69 forks source link

added the option to enable cors in browsersync server, to support the… #24

Closed dusanmiloradovic closed 7 years ago

dusanmiloradovic commented 7 years ago

I added the option to enable cors in browsersync server, to support the cordova browser platform. The browser platform starts typically on port 8000, and rejects the ajax to browserSync server running on port 3000 unless the cors is set to enable the cors --enable-cors option is used: cordova run -- --live-reload --enable-cors