Whitelist security constraint in web.xml

后端 未结 3 1126
梦谈多话
梦谈多话 2020-11-29 06:56

I\'m using Tomcat for my Struts2 application. The web.xml has certain entries as shown below:



        
3条回答
  •  春和景丽
    2020-11-29 07:02

    A slight tweak to the accepted answer (set the url-pattern in the second security-constraint to map to the default servlet "/") works for JBoss and Weblogic but not for Websphere:

    
        
            Allowed methods
            /*
            GET
            POST
        
        
    
    
        
            Restricted methods
            /
        
        
    
    

    With the security constraints configuration above, I'm not sure why Websphere allows all HTTP methods, while JBoss and Weblogic only allows GET and POST.

提交回复
热议问题