Viability of using an appgyver web app as an embeddable javascript widget for other sites

I need to create an embeddable javascript widget for client’s sites.

I would like to use appgyver to create the content of the widget, but I’m wondering whether this is technically viable.

For example, I would like to provide my client’s with a javascript snippet that they can paste onto their homepage, to allow their user’s to interact with a popup version of my appgyver web app.

The app itself, we’re likely going to have multiple pages and network functionality, such as connecting to third party api’s, and potentially even authentication if possible.

I understand that we’ll likely need to build a wrapper around the web app in order for a javascript snippet to work. However, will we have issues with the likes of CORS or does this sound doable?

Thank you!