springboot 使用interceptor 返回前端http状态码为0
生活随笔
收集整理的這篇文章主要介紹了
springboot 使用interceptor 返回前端http状态码为0
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
擼了今年阿里、頭條和美團的面試,我有一個重要發現.......>>>
需要添加:
response.addHeader("Access-Control-Allow-Credentials", "true");
resp.addHeader("Access-Control-Allow-Methods", "*");
總結
以上是生活随笔為你收集整理的springboot 使用interceptor 返回前端http状态码为0的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Git 忽略提交 .gitignore
- 下一篇: 从零开始搭建spring-cloud(5