All calls to the server can be proxied by providing a proxy definition in either of the following two ways:
Pass a proxy definition in the initialization config argument for LicenseAPI, LicenseManager or FloatingAPI, for example:
proxy
LicenseAPI
LicenseManager
FloatingAPI
const licenseAPI = new LicenseAPI({ apiKey: '12345678-4bfe-4e3a-8737-757004d6294c', sharedKey: 'eYuHrlajvIVTiSFIXpxpKhw78f4Ewy-00-12345678', appName: 'js-sdk-test-1', appVersion: '0.0.1', proxy: { host: '127.0.0.1', port: 9000, }, });
Call the setProxy method on an initialized LicenseAPI, LicenseManager or FloatingAPI object, for example:
setProxy
licenseAPI.setProxy({ host: '127.0.0.1', port: 9000, });
For the type declaration of the proxy definition object, see AxiosProxyConfig in the Type Declarations article.
AxiosProxyConfig
Last updated 12 days ago
Was this helpful?