fetch跨域浏览器请求头待研究

fetch('https://wwww.baidu.com', {headers: { "Access-Control-Allow-Origin": "*", 'Access-Control-Allow-Methods': 'GET, POST, PATCH, PUT, DELETE, OPTIONS', 'Access-Control-Allow-Headers': 'Origin, Content-Type, X-Auth-Token'}})

猜你喜欢

转载自www.cnblogs.com/huashiyiqike/p/10592937.html