Proxying

If you're not seeing sessions or errors on Highlight, chances are that requests to Highlight are being blocked. This can happen for different reasons such as a third-party browser extension, browser configuration, or VPN setting.

One way we can avoid this is by setting up proxy from your domain to Highlight. To do this, you will need access to your domain's DNS settings.

Setting up the proxy

Add a CNAME record that points highlight.<YOUR_DOMAIN> to pub.highlight.run.

Example

You have an app running on https://piedpiper.com. Your DNS record will point highlight.piedpiper.com to pub.highlight.run.

Using the Proxy

In your app where you call H.init(), you will need to set backendUrl to the DNS record you just created. For the example above:

JS

You should now see Highlight making requests to https://highlight.piedpiper.com instead of https://pub.highlight.run.