通用跨域问题解决方法
2019-02-20 本文已影响0人
我爱吃蛋糕_ab5e
通用方法:
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"));