Comment

Comment by alexgleason

This is a web trick that lets you safely embed arbitrary html. It involves serving the same static site from all subdomains *.example.com and communicating with the host over postMessage. This allows the host to render previews using root-relative paths (vite builds) so it could function as a local devserver for an IDE. It could also be used to embed mini-apps submitted by users in chats and social feeds.
parent alexgleason 2 months ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton