IIS shouldn't add any additional html to your page. IIS is only be able to rewrite the attribute in img/a/script/... tag if you have set the outbound rule. If you want to disable this for your 302 response, just add the condition pattern or precondition
with {RESPONSE_STATUS} does not match 302. Please enable the failed request tracing to check what's going on with your application.
Best Regards,
YUk Ding
Yuk Ding
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue.
4042 Posts
Re: Content-Length Error when IIS returns response with STATUS 302
Jun 30, 2017 08:18 AM|Yuk Ding|LINK
Hi s.jmacov,
IIS shouldn't add any additional html to your page. IIS is only be able to rewrite the attribute in img/a/script/... tag if you have set the outbound rule. If you want to disable this for your 302 response, just add the condition pattern or precondition with {RESPONSE_STATUS} does not match 302. Please enable the failed request tracing to check what's going on with your application.
Best Regards,
YUk Ding
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue.