Active Admin login for admin users redirects back to the login page with correct credentials only in Chrome on localhost

前端 未结 1 1358
余生分开走
余生分开走 2021-01-26 05:02

I am only having this problem locally in Chrome, not in production. It is also not a problem in Safari or Firefox. I am not sure what caused the problem as my only recent change

相关标签:
1条回答
  • 2021-01-26 05:32

    This ended up working, with a bunch of finagling:

    https://github.com/codica2/rails-puma-ssl

    I am now using something like this to launch rails on localhost: rails s -b 'ssl://localhost:3000?key=server.key&cert=server.crt'

    In /etc/hosts, I had to change 127.0.0.1 localhost to 127.0.0.1 localhost.ssl

    To see localhost, I have to add the "s" so, for example, Active Admin is here: https://localhost:3000/admin

    0 讨论(0)
提交回复
热议问题