Setting iframe protection for Vite static site

Setting iframe protection for Vite static site

nathanreyes
Shopify Partner
1 0 0

We are building our embedded app using Vite and hosting the site statically. Is it even possible to set up iframe protection dynamically using this setup? I need to set the current shop domain in the response header but from all my research it seems like I need to set up middleware on the static site server (Render doesn't support this feature) or migrate to something more traditional like Django or Rails. Just wondering if others have solved this issue with a similar architecture?

Replies 0 (0)