打开 HTTP响应标头
添加如下三条
名称Access-Control-Allow-Origin 值*
名称Access-Control-Allow-Headers 值Content-Type,Accept
名称Access-Control-Allow-Methods 值GET,POST
打开 HTTP响应标头
添加如下三条
名称Access-Control-Allow-Origin 值*
名称Access-Control-Allow-Headers 值Content-Type,Accept
名称Access-Control-Allow-Methods 值GET,POST
转载于:https://www.cnblogs.com/qinweizhi/p/11250656.html