RAILS/DEVISE - Setting a devise cookie to persist across different subdomains

前端 未结 2 1374
[愿得一人]
[愿得一人] 2021-02-07 20:36

I use devise for authentication and want the following to work:

  1. User logs in at [http://mydomain.com].
  2. The user makes a payment at [https://secure.mydomai
2条回答
  •  庸人自扰
    2021-02-07 21:00

    Addendum: if it still doesn't work although you're pretty sure you deleted your old cookies, rename the cookie's key – just to make sure. (after hours of troubleshooting, this was all I really had to do to make it work.)

提交回复
热议问题