ruby on rails - How do I use BrowserSync in conjunction with OAuth App? -


in case have rails app uses facebook oauth.

since facebook not allow localhost domains registered oauth callback url required use workaround in development mode. run app in development running app on port 80 , inserting following mapping in /etc/hosts:

127.0.0.1    my-website.com 

facebook redirercts my-website.com/callback allowing me authenticate users locally.

so challenge allow browsersync livereload js/css @ my-website.com. tried configuring gulp , browsersync, following

proxy: 'my-webite.com' 

browsersync creates proxy , runs app on localhost:3000. however, upon logging in redirected my-website.com , browsersync url localhost:3000 remains in session , unable "login" app.

any suggestions?

(also tried running app on port 8000 , browser sync on port 80, facebook login redirected me localhost:8000/callback not valid redirect uri).


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -