The Frontend Auth Middleware: Cross-Origin Iframes Without Third-Party Cookies
seg6.space·2d·
Discuss: Hacker News
☁️Cloudflare Workers
Preview
Report Post

Dec 25, 2025

A few years ago, I worked on a multi-tenant platform. The setup:

  • Users could deploy apps to their own subdomains (alice-app1.platform.app, alice-app2.platform.app, bob-todo.platform.app)
  • Users could also browse and install apps published by other users, kind of like an app store
  • The main dashboard lived on platform.io, where users managed their account, installed apps, and accessed everything
  • We wanted to embed these apps in iframes on the dashboard so users could interact with them without leaving the page

The platform handled auth globally. A user could have multiple apps (alice-app1.platform.app, alice-app2.platform.app), and they all used the same credentials. Apps didn’t implement their own auth, the platform’s routing layer validated reque…

Similar Posts

Loading similar posts...