Javascript exceptions through backend?

Any way I could pass js sentry through backend? Currently we have an onpremise sentry and its not available from the outside network, I would like to make it so that js sentry passes the exceptions through the backend and the backend sends the exceptions to senty.