response.setHeader("Access-Control-Allow-Origin", "*");
response.setHeader("Access-Control-Allow-Methods", "*");
response.setHeader("Access-Control-Max-Age", "3600");
response.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Authorization,"+ " Content-Type, Accept, Connection, User-Agent, Cookie,token");
RequestMapping添加跨域响应头
最新推荐文章于 2024-09-18 21:23:26 发布