When SharePoint (2013) trying to reach APP on the PHA server it goes to AppRedirect.aspx and shows a request like:


But we've got a security warning cause HTTP in this request (redirect_uri=http://). How to change it and where?

What I have done:

  • checked app config via Get-SPAppInstance and it shows 'https://' under 'LaunchUrl'
  • checked AppManifest.xml and it's 'https://' under tag
  • updated the lates version of app
  • on AppRegNew.aspx page when app was registered inside 'Redirect URI' you can put only 'https://'...

Thank you.


As a workaround I've added this rule on all WFE servers:

            <rule name="rewrite" enabled="true" stopProcessing="true">
                <match url="^_layouts/15/AppRedirect.aspx$" />
                <action type="Rewrite" url="/_layouts/15/AppRedirect.aspx?{C:1}redirect_uri=https{C:2}" appendQueryString="false" />
                    <add input="{QUERY_STRING}" pattern="(.*)redirect_uri=http(.*)" />

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.