The team is now working on the WordPress Interactivity API. This unblocks the same UX Frontity framework enabled but directly in WordPress Core, fully compatible with the new Site Editor.
I would like to set up a redirection from Frontity domain to WP domain (with the Embedded Mode plugin installed). But I’m not sure how to achieve this efficiently, while still allowing WP to make successful requests to the Frontity / Node server. A couple of options I had in mind:
using state.source.redirections = "all" on Frontity and have WordPress check for certain request header args (I see that we can filter the args sent by WP Embedded Mode plugin using the frontity_embedded_request_args filter).
using some sort of redirection provided by the host and check for certain args as well (e.g. Vercel using the has property on its redirection)
I don’t think we can check the request from Frontity itself, but with Server Extensibility this might be an option.
Any suggestion would be helpful. Thanks!
mburridge2
Hi @kevin
Frontity uses Koa on the node server, so searching for ways to implement redirection using Koa might turn up something useful for you.