Provides one part of the solution to #3482. The other part is sadly on the shoulders of the user, who needs to setup either a whole domain hierarchy to not run into "third party page" issues that would trigger SameSite=Lax blocking, or needs to reconfigure their setup to use https and make sure to set Secure to true. Closes #3482 (there's nothing else I can do here)