How to turn Coda published docs into membership sites (e.g. Outseta)

Hi. I was wondering if anyone knows how to turn Coda published docs into membership sites (e.g. Outseta).

I tried to use Cloudflare worker to inject extra css and Javascript into a coda doc (Custom Domain) but the injection doesn’t seem to work.

Thanks in advance!

Update.

I got everything to work with Cloudflare Proxies and Cloudflare Workers. I injected Outseta’s required Javascriot into the html header via the Worker then intercept the html via DNS proxy.

It all worked well until I was hit by frequent Error 525 Cloudflare handshake failure. So far, I can’t seem to get around it yet.

If anyone has any ideas, please feel it to contribute here for future Codians too!