There's an issue when my website tries do redirect to the stripe checkout page, since the url that should be www.checkout.stripe.com/pay/cs\_... becomes www.mysite.com/pay/cs\_... which I suspect is because of the rule below.
<rule name="ReverseProxyInboundRule1" enabled="true" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://localhost:8008/{R:1}" />
</rule>
This rule does not cause www.checkout.stripe.com/pay/cs\_... to become www.mysite.com/pay/cs\_..., If it works, it should redirect to http://localhost:8008/pay/cs_...
Is there anyway that I can add an exception to this rule and allow www.checkout.stripe.com to not be redirected?
If you want it not to be redirected when the hostname is checkout.mysite.com, you can add the following condition to the rule, negate this condition with the negate attribute.
<conditions logicalGrouping="MatchAny">
<add input="{HTTP_HOST}" pattern="^checkout.mysite.com$" negate="true" />
</conditions>
Finally I suggest you to use failed request tracing to see the process in detail so you will find out what the problem is.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.