- Proxying the Velt SDK
- Proxying Velt API calls
Proxying the Velt SDK
To serve the Velt SDK via your own proxy server (e.g.,nginx) instead of Velt’s servers, provide your proxy’s base URL.
- Velt will automatically append
/lib/sdk@[VERSION_NUMBER]/velt.jsto yourproxyDomainto determine the full URL for fetching the SDK.- If
proxyDomainishttps://cdn.yourdomain.com, the SDK will be loaded fromhttps://cdn.yourdomain.com/lib/sdk@[VERSION_NUMBER]/velt.js.
- If
- Your proxy server must be configured to to forward requests from
[your_proxyDomain]tohttps://cdn.velt.devwithout any modifications to headers or any other content.
- React / Next.js
- Other Frameworks
Proxying Velt API calls
To serve the Velt APIs via your own proxy server (e.g.,nginx) instead of Velt’s servers, provide your proxy’s base URL.
- If
apiProxyDomainishttps://api.yourdomain.com, the APIs will be loaded fromhttps://api.yourdomain.com. - Your proxy server should be configured to forward requests from
[your_apiProxyDomain]tohttps://api.velt.devwithout any modifications to headers or any other content.
- React / Next.js
- Other Frameworks
Integrity Check
To ensure the integrity of the Velt SDK, especially when served via a proxy, Velt leverages Subresource Integrity (SRI). Subresource Integrity (SRI) is a security feature that enables browsers to verify that resources they fetch (for example, from a CDN or your proxy server) are delivered without unexpected manipulation.- Default:
false
- React / Next.js
- Other Frameworks

