Problem: I am making an anonymous JavaScript REST call to a image library. I get the error "Request failed. The method GetItems of the type List with id ... is blocked by the administrator on the server.nundefined".
Resolution: Change the ClientCallbackSettings on the web application as shown below.
$wa = Get-SPWebApplication http://www.demo.dev$wa.ClientCallableSettings .AnonymousRestrictedTypes.Remove([microsoft.sharepoint.splist],"GetItems")
$wa.Update()
More Info:
http://www.sharepoint-zone.com/search/label/ClientCallableSettings.AnonymousRestrictedTypes
0 comments:
Post a Comment