开发者

Issues with requestValidationMode="2.0" and validateRequest="false"

开发者 https://www.devze.com 2023-02-16 23:46 出处:网络
I\'ve been looking at this issue for quite a while now. Basicly what the issue is that IIS 7.5 and IIS Express both ignore the following two lines:

I've been looking at this issue for quite a while now.

Basicly what the issue is that IIS 7.5 and IIS Express both ignore the following two lines: I've googled and searched here on stackoverflow and most just suggest adding tho开发者_C百科se two lines, but it does not matter what I do(reboot server, create a new app pool) it does not work.

Anyone got any ideas to why this happens?


you also need to add ValidateInput(false) to your action if you are dealing with MVC.

or add deriective on the page if you are working on web forms

0

精彩评论

暂无评论...
验证码 换一张
取 消