- Added support for redirecting all network calls through a custom proxy URL for browser environments. This feature allows users to route all SDK network requests (settings, tracking, etc.) through their own proxy server. This is particularly useful for bypassing ad-blockers that may interfere with VWO's default network requests.
const settingsFile = await vwoSdk.getSettingsFile(accountId, sdkKey, null, { proxyUrl: 'http://localhost:3000' });
// If you are not calling getSettingsFile and are using locally stored settings,
// you can pass the proxyUrl directly in the launch method.
const clientInstance = vwoSdk.launch({
settingsFile: localSettings, // local json parsed settings
proxyUrl: 'http://localhost:3000', // your custome proxy url here
});