Question
ContentLoaderFunctions.GetJSON to access secured resource gives error while Postman runs it smooth.
Getting:
Error executing service getPeople. Message :: Certificate for <services.odata.org> doesn't match any of the subject alternative names: [*.azurewebsites.net, *.scm.azurewebsites.net, *.azure-mobile.net, *.scm.azure-mobile.net, *.sso.azurewebsites.net] - See Script Error Log for more details.
Postman handles this ok.
var headers = { 'Content-Type': 'application/json', Accept: 'application/json' };
var params = {
proxyScheme: undefined /* STRING */,
headers: headers /* JSON */,
ignoreSSLErrors: true /* BOOLEAN */,
useNTLM: undefined /* BOOLEAN */,
workstation: undefined /* STRING */,
useProxy: undefined /* BOOLEAN */,
withCookies: undefined /* BOOLEAN */,
proxyHost: undefined /* STRING */,
timeout: undefined /* NUMBER */,
proxyPort: undefined /* INTEGER */,
password: undefined /* STRING */,
domain: undefined /* STRING */,
username: undefined /* STRING */
};
// result: JSON
var result = Resources["ContentLoaderFunctions"].GetJSON(params);
Pls help,
Thanks

