Sunday, April 10, 2016

After installing security patch provider hosted app page shows "You are being redirected to the following url that was not registered as the app launch url"

Issue:error when clicking new subiste option in SharePoint App environment we ran into below Issue with several Provider Hosted Apps. 



Solution : 

After adding a "CustomAppRedirect" property to the Farms property bag all Apps work fine
(Get-SPFarm).properties["CustomAppRedirect"] = $true
(Get-SPFarm).Update()

3 comments:

  1. I have too getting the same error. but i am not sure, where i want to add the above code in my app. Please let me know.

    ReplyDelete
  2. I think, it is shell command. where i want to update it.

    ReplyDelete
  3. Thanks! That worked lik a charm!

    ReplyDelete