Proposal: Safe SameSite=None JWT bridge for cross-domain WooCommerce login & checkout #61696
Maysker
started this conversation in
Checkout Flow
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Woo team
While integrating an external Angular frontend with a WooCommerce webshop, we encountered a recurring issue:
SameSite=None+ CORS restrictions break JWT-based authentication and prevent WordPress cookies from being set when using cross-domain checkout or embedded iframes.To address this, I built a small open-source plugin — JWT Login Cookie Bridge — a lightweight PHP bridge (~200 lines) that safely exchanges a verified JWT for native WordPress cookies (
SameSite=None; Secure; HttpOnly) under a strict CORS whitelist, with optional iframe support.It enables:
I’m sharing it here as a proof-of-concept and wondering:
Repo: https://github.com/Maysker/jwt-login-cookie-bridge
License: GPLv3
Would love your thoughts and feedback 🙏
Beta Was this translation helpful? Give feedback.
All reactions