首页 > 解决方案 > Spring-Security:StrictHttpFirewall 不允许如果 url 包含?(例如有查询参数)

问题描述

我在使用 StrictHttpFirewall 时遇到问题,因为它不允许使用 ?

though we have defined all the default set parameters as true:
  


  StrictHttpFirewall firewall = new StrictHttpFirewall();
            firewall.setAllowUrlEncodedSlash(true);
            firewall.setAllowBackSlash(true);
            firewall.setAllowUrlEncodedPercent(true);
            firewall.setAllowUrlEncodedPeriod(true);
            firewall.setAllowSemicolon(true);


Please help if faced and resolved same issue in passed. 

Thanks,

标签: spring-security

解决方案


推荐阅读