option请求401 等权限问题

在浏览器中跨域、以及 post等复杂请求 发生时,会先发送options请求进预检,请求又无法携带authorization参数,所以options预检请求会被服务器拒绝,解决方法是在后台 拦截器中 对options请求放行,没有必要对options进行权限控制
版权声明:
作者:东明兄
链接:https://blog.crazyming.com/note/733/
来源:CrazyMing
文章版权归作者所有,未经允许请勿转载。


共有 0 条评论