adobe / helix-rum-js

Helix RUM Event Generator for JavaScript
Apache License 2.0
1 stars 8 forks source link

Routing RUM requests to same domain not possible anymore #171

Closed cziegeler closed 4 months ago

cziegeler commented 4 months ago

Description With v2 it is no longer possible to route the RUM requests (loading of additional scripts, POSTs) to the same domain as the html page. They always go to rum.hlx.page.

The problem is the changed logic here: https://github.com/adobe/helix-rum-js/blob/main/src/index.js#L38

cziegeler commented 4 months ago

There is a way to get a similar behaviour to v1 by setting RUM_BASE to windows.location.origin.