Iframe.diy – "iframe server" static site

(iframe.diy)

2 points | by alexgleason 10 hours ago ago

1 comments

  • alexgleason 10 hours ago

    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.