If you got the below error while developing a SharePoint hosted app:
The remote server returned an error (401) unauthorized.
Then try the below solution:
Add the below tag in web.config of your web application:
<appSettings>
<add key="aspnet:AllowAnonymousImpersonation" value="false" />
</appSettings>
Hope it will work.
The remote server returned an error (401) unauthorized.
Then try the below solution:
Add the below tag in web.config of your web application:
<appSettings>
<add key="aspnet:AllowAnonymousImpersonation" value="false" />
</appSettings>
Hope it will work.