天天看點

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'}})      

轉載于:https://www.cnblogs.com/huashiyiqike/p/10592937.html