var xhr = new XMLHttpRequest();
xhr.open('OPTIONS', 'http://127.0.0.1:8000/hello');
xhr.send();
xhr.onload = function(e) {
var xhr = e.target;
console.log(xhr.responseText);
}
var xhr = new XMLHttpRequest();
xhr.open('OPTIONS', 'http://127.0.0.1:8000/hello');
xhr.send();
xhr.onload = function(e) {
var xhr = e.target;
console.log(xhr.responseText);
}
本文标题:浏览器控制台模拟跨域
本文链接:https://www.haomeiwen.com/subject/uyhtprtx.html
网友评论