You need to sign in to do that
Don't have an account?
Webservice callout failed : Call is not authorised
Hi,
I am making a webservice callout from my sandbox and sending sessionId as well as Enterprise Server Url with the request, since service authenticates the request by callback to server url, whether it is valid or not using this information.
Its working fine in the org.
Now When i included that page in site and tried to make callout, its giving message - "Call is not authorised."
It might be because of server url since force.com site has its own domain, so server url might be differ here.
NOw thw question is what will be the apiServerUrl in case of site so callback can be successfull.
You'll need login.salesforce.com plus the api URL of your server (which is NOT the URL of the browser's access). Ex: na1.salesforce.com should use na1-api.salesforce.com as the access server.