Question on Embed Kit 2.0

We are currently using the Figma Embed Kit 2.0 to include interactive prototypes in our application. To facilitate communication via the postMessage API, we need to specify the origin (app.superops.com). However, our application allows users to configure custom portal URLs (e.g., anything.subdomain.com), which makes it difficult to specify a static origin in the OAuth app.

Any leads on how we can go about this? Is there an option to set the origin dynamically?