ruby - Rails app returning 401 Unauthorized while logging in only in production -


i can't login in app deployed on heroku, 1 in production. on local machine 1 runs development work without problem. both databases same dump copies of each other.

i verified user exist in remote database , password given in correctly, both local , remote version same branch , synced.

i've tried this solution, config/initializers/session_store.rb looks this:

# sure restart server when modify file. filteredweb::application.config.session_store :cookie_store, key: '_filtered-web_session', domain: :all 

someone suggested changing encryption key in config/initializers/devise.rb don't see , neither understand logic behind it.

versions

devise (2.2.3) rails (3.2.13) 

i had same exact error... removing domain: :all fixed me. see a similar issue on github


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -