Quantcast
Channel: Office App Model Samples
Viewing all articles
Browse latest Browse all 20

Commented Unassigned: Getting error box with "Fix It" button in PeoplePicker Control [1822]

$
0
0
Hi,
I am using AMS people picker control in my provider hosted app. When I clear cookies and history of my IE browser and access my people picker control, then I am getting an error message box with Fix It button. If I click on this "Fix It" button and reloads the page, it works.

I want to remove this error.

I think this is happening due to cross site reference to app web.
I have tried to narrow down the cause of this error:
I found that it is occurring due to call to [AppWebUrl]+"/_layouts/15/appwebproxy.aspx" by SP.ProxyWebRequestExecutorFactory().

I tried to send a POST request, but I need a way to authenticate the app web site.

```
$.ajax({
type: "POST",
url: appWebUrl + "/_layouts/15/appwebproxy.aspx",
cache: false,
dataType: 'html',
success: function () {
alert("AppWebProxy is accessible")
isAppWebAccesible = true;
}
});
```

Please help me to resolve this issue.
Thanks in advance.
Comments: ** Comment from web user: vesaj **

Thanks Sandipdalvi,
this is really great input and does help. Please also note that we have moved the project to GitHub and this would be excellent input for the Yammer discussions related on the Patterns & Practices Project, so that we let other people to know about the resolutions on these typical problems. I will also update the documentation for this control at the GitHub based on this valuable input.

* [Office 365 Developer Patterns and Practices in GitHub](http://aka.ms/officedevpnp)
* [Office 365 Patterns and Practices Yammer Group](http://aka.ms/officedevpnpyammer)
* [People picker control documentation](https://github.com/OfficeDev/PnP/tree/dev/Components/Core.PeoplePicker)


Viewing all articles
Browse latest Browse all 20

Trending Articles