I’m following these instructions verbatim: Local development - HubSpot docs
My proxied membership pages locally are not respecting the logged in state after having logged in on the live site.
Even if I log in on the live page first and then add hslocal.net:3000 to the domain, the proxied page keeps redirecting me back to the login screen.
Hi @MFall13, getting back to you on this: to get proxied membership pages working locally, here are some steps you can try:
- Start by logging in on your live site at the actual domain (for example, https://yourdomain.com/_hcms/mem/login).
- Next, access the proxied version locally by using either http://hslocal.net:3000 or localhost:3000 with your root domain.
Your authentication cookie from the live site should carry over.
If you’re still being redirected to the login page, here are a few things you can try:
Hi @MFall13, the membership system sets cookies when you log in through your live domain (such as https://yourdomain.com/_hcms/mem/login), and these cookies should carry over to your local proxy environment.
While the exact cookie names aren’t detailed in our documentation, you can easily identify them by checking your browser’s cookies after logging in to your live membership page.
This is a helpful way to see which cookies HubSpot’s membership system uses.
Thanks,
Bérangère This post was created with the assistance of AI tools