0

I'm using omniauth for fb & google logins. However, instead of redirect to page with the login, it re-directs to fallback page all the time.

When I check request.referrer, it is blank. request.original_url is the callback URL for the login. http://localhost:3000/auth/facebook/callback?code="

Here is the route: get "/auth/:provider/callback", to: "sessions#create".

Seems like callback is somehow deleting the request.referrer. I thought on local it might be due to http to https switch. However, it persists when I deploy to and everything is https.

0 Answers0