setLicenceProxy
Sets the licence by requesting it from a licence proxy on your server. The proxy holds the licence key and secret, so they are not exposed in the browser.
await sigObj.setLicenceProxy(url)
| Parameters |
|---|
| url: String with the URL of the licence proxy. |
| Return values |
|---|
| The function returns a promise that resolves to true when it succeeds, or raises an exception if it fails. |
The proxy receives the request from the SDK, requests the licence from the Wacom licence server and returns it.
It must forward the Authorization header of the SDK's request to the licence server.
The sample repository includes example proxies for Node.js (demos/common/licence_proxy.js) and PHP (demos/common/licence_proxy.php).