# Set up with Cloudflare Workers

1. In Cloudflare, go to: **Compute & AI > Workers & Pages** and create a new Worker.

2. Configure the Worker code to intercept requests on the chosen path (/metrics/) and route them to the sGTM server.

3. Add a **Route** mapping your sGTM URL to your domain.

4. Configure **Configuration Rules** with SSL set to**Full**.

5. Create a **Request Header Transform Rule** adding the header **X-From-Cdn: cf-wascer**.

6. Save and deploy.

Source: https://wascer.com/helpdesk/abordagem-same-origin/configuracao-via-cloudflare-workers
