I have now deployed the little LiveView (on Fly: Typeset · Phoenix Framework) and on its own it’s all dandy. The plan was to make this into an iFrame embed in Wordpress, so this follows the recipe How to: Embed a LiveView via iframe and goes through its own pipeline.
Cookie “__phoenix_reload_status__” does not have a proper “SameSite” attribute value. Soon, cookies without the “SameSite” attribute or with an invalid value will be treated as “Lax”. This means that the cookie will no longer be sent in third-party contexts. If your application depends on this cookie being available in such contexts, please add the “SameSite=None“ attribute to it. To know more about the “SameSite“ attribute, read https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie/SameSite
__phoenix_reload_status__ is part of Phoenix.LiveView.Static, but I don’t understand why this is causing an issue only when it’s visited on the custom domain. There is a separate socket with its own @session_options
I am also using Typst in a couple of projects, that’s why I assembled a Hex package that uses a Rust nif so you don’t have to shell out, or use a temporary file.
Thanks — I did check out ex_typst. I shell out (necessitating the temporary file) because I’m using the CLI to generate transparent PNGs, and also (in the future) use typst query from the CLI to extract parameters from the run.
(It was a while since I did the earlier expts; with the PDF, the only way I can get a clean transparent PNG back out was to Mogrify it with peculiar flags… again from the CLI.)