Whitelist security constraint in web.xml

后端 未结 3 1133
梦谈多话
梦谈多话 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:24

    I would try the following:

    
        
            /*
            GET
            POST
        
        
    
    
    
        
            restricted methods
            /*
        
       
    
    

    The first security-constraint does not have any auth-constraint, so the GET and POST methods are available to anyone without login. The second restricts other http methods for everybody. (I haven't tried it.)

提交回复
热议问题