web.xml中的security-constraint
来源:互联网 发布:经传软件骗局2016 编辑:程序博客网 时间:2024/06/08 03:15
<security-constraint><web-resource-collection><url-pattern>/*</url-pattern><http-method>PUT</http-method><http-method>SEARCH</http-method><http-method>DELETE</http-method><http-method>COPY</http-method><http-method>MOVE</http-method><http-method>PROPFIND</http-method><http-method>PROPPATCH</http-method><http-method>MKCOL</http-method><http-method>LOCK</http-method><http-method>UNLOCK</http-method><http-method>HEAD</http-method><http-method>OPTIONS</http-method><http-method>TRACE</http-method><http-method>PATCH</http-method></web-resource-collection><!-- <auth-constraint><role-name>All Role</role-name></auth-constraint> --></security-constraint><login-config><auth-method>BASIC</auth-method></login-config>
其中的,
<auth-constraint><role-name>All Role</role-name></auth-constraint>如果有元素标签auth-constraint时,内容为空时则禁止所有资源访问,无此元素时则security-constraint不起作用
详见其他地方的说明
如果H5请求服务端,报403/415时,不一定是跨域问题,有可能是这个web.xml中加了元素security-constraint及空元素security-constraint
阅读全文
0 0
- web.xml中的security-constraint
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- 学习记录 -- web.xml中security-constraint配置测试
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- web.xml中<security-constraint>和四种认证类型
- 让元素自适应屏幕大小
- 数据库连接池
- 如何安装VisualSVN-Server-3.7.0
- 为什么AI工程师要懂一点架构?
- 有三个线程,怎么让他们按顺序执行
- web.xml中的security-constraint
- spring boot项目搭建 发布 打包弯路全纪录
- 5.7及以上版本的MySQL下载、安装及配置教程
- TCP Fluid Model
- Linux下/etc目录详解
- 一个用vue写的小网站 过程梳理 一些记录
- Handler消息处理机制
- windows 下配置 Nginx 常见问题
- 一种简单的防止重复点击的工具类