【发布时间】:2016-03-14 05:27:46
【问题描述】:
我正在使用 asp.net mvc web api,我有这个方法
[HttpGet]
public LoginResult AuthenticateOnlineBookingUser(String userName,String password)
{
//My Code
}
问题是当我将(*)作为输入值传递给参数(密码)时 我收到此错误,但在其他输入上它工作正常
从客户端检测到潜在危险的 Request.Path.value(*)
提前致谢
注意:我的客户端是用angular js写的
我也试过这个解决方案Getting "A potentially dangerous Request.Path value was detected from the client (&)",但它不适合我
【问题讨论】:
-
还有一件事我的密码包含 * 我不能覆盖这个值