我正在为域.domain.com
或domain.com
设置cookie,但是下面的重写规则将cookie域更改为:dev.domain.com
。
我可以防止重写更改响应Cookie域吗?
谢谢
<rewrite>
<rules>
<rule name="ReverseProxyInboundRule1" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="http://localhost:54458/{R:1}" />
</rule>
</rules>
<outboundRules>
<rule name="ReverseProxyOutboundRule1" preCondition="ResponseIsHtml1" stopProcessing="true">
<match filterByTags="A, Form, Img" pattern="^http(s)?://http://localhost:54458/(.*)" />
<action type="Rewrite" value="http{R:1}://dev.domain.com/{R:2}" />
</rule>
<preConditions>
<preCondition name="ResponseIsHtml1">
<add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
</preCondition>
</preConditions>
</outboundRules>
</rewrite>