Redirection for API linksRSS

2 replies

Last post Mar 18, 2020 08:06 AM by Jalpa Panchal

  • Redirection for API links

    Mar 17, 2020 06:55 AM|TwekanFreak|LINK

    Hey everyone. I have an Angular application that is required to make API requests on

    So my problem is that I need to redirect these incoming requests to this URL but the API does not have SSL for https requests. I want to use the "" bound to SSL certificate from IIS to redirect my requests over https. Is that possible or am I way off here? 

    Thanks for your time reading this.

  • Re: Redirection for API links

    Mar 17, 2020 06:45 PM|lextm|LINK

    Lex Li
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Redirection for API links

    Mar 18, 2020 08:06 AM|Jalpa Panchal|LINK


    You could use the IIS arr reverse proxy rule to implement your requirement:

    For that, you need to install the iis URL rewrite module and the Application Request Routing from the below link.

                    <rule name="ReverseProxyInboundRule1" stopProcessing="true">
                        <match url="(.*)" />
                        <action type="Rewrite" url="{R:1}" />
                    <rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1">
                        <match filterByTags="A, Form, Img" pattern="^http(s)?://*)" />
                        <action type="Rewrite" value="http{R:1}://{R:2}" />
                        <preCondition name="ResponseIsHtml1">
                            <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact