/license.xml via your domain, and enforcing the Crawler Authentication Protocol (CAP) across your site.
RSL License Deployment
Your RSL license needs to be accessible athttps://yourdomain.com/license.xml. A lightweight Worker proxies this path to the Supertab Connect origin, keeping the URL on your domain.
Worker
Create a Worker that proxies/license.xml to the Supertab Connect API:
Worker Route
Add a route that maps requests to/license.xml on your domain to this Worker:
wrangler.toml:
CAP Enforcement
CAP validates theAuthorization: License <token> header on crawler requests. The SDK Worker handles detection, verification, enforcement, and analytics recording.
Project Setup
Worker Handler
ctx — the SDK uses it to record analytics events in the background without blocking the response.
Wrangler Configuration
nodejs_compat flag is required for the SDK to function.
API Key Secret
Store your Merchant API key (from the Supertab Connect dashboard) as a Worker secret:env object at runtime.
Deploy
wrangler dev for local preview before deploying to production.
Enforcement Modes
Related Docs
Deploy in Your CDN
CDN-agnostic guide covering RSL serving, CAP enforcement, and robots.txt.
Other CDNs
Generic CDN patterns for platforms not listed above.