📜  获取请求允许 cors - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:20.428000             🧑  作者: Mango

代码示例1
// From http://foo.com/
fetch('http://bar.com/data.json', { 
    mode: 'no-cors' // 'cors' by default
}).then(function(response) {
    // Do something with response
});