通用方法:
response.setHeader("Access-Control-Allow-Credentials","true");
response.setHeader("Access-Control-Allow-Origin", request.getHeader("Origin"));
通用方法:
response.setHeader("Access-Control-Allow-Credentials","true");
response.setHeader("Access-Control-Allow-Origin", request.getHeader("Origin"));
本文标题:通用跨域问题解决方法
本文链接:https://www.haomeiwen.com/subject/mhkhyqtx.html
网友评论