Problem description
When you call the single-domain resolution API to access Domain resources, the following error is returned:
UnsignedInterfaceDisabled
Cause
This error occurs because signature-based access is enabled for HTTPDNS, which prevents you from calling the single-domain resolution API to access Domain resources.
Solution
Log on to the HTTPDNS console. In the navigation pane on the left, choose Access Configuration > Developer Configuration.
On the Developer Configuration page, obtain the secretKey:
Enable authentication in your client-side code:
Android:
HttpDnsService httpdns = HttpDns.getService(applicationContext, accountID, secretKey);iOS:
HttpDnsService *httpdns = [[HttpDnsService alloc] initWithAccountID:accountID secretKey];Harmony:
httpdns.configService(accountID, { context: this.context, secretKey: this.secretKey });
Applies to
HTTPDNS
该文章对您有帮助吗?