设置接口跨域调用方法

    response.setHeader("Access-Control-Allow-Credentials", "true");

    response.setHeader("Access-Control-Allow-Origin", "http://xxx.com");


详细参见:http://www.cnblogs.com/dojo-lzz/p/4265637.html

你可能感兴趣的:(跨域)