使用JS访问股票API没有结果,使用浏览器直接访问没有问题,谁告诉我为什么。

问题遇到的现象和发生背景

例子1:https://q.stock.sohu.com/hisHq?code=cn_600009&start=20180716&end=20180720&stat=1&order=D&period=d&callback=historySearchHandler&rt=jsonp 这个URL就不能在JS里获取返回值,但是状态可以看到是成功建立链接。
例子2:http://qt.gtimg.cn/q=sh600690,sz000019,sh600238,sz000001
这个URL就既可以在浏览器里访问也可以在JS里访问。

求法神给个解释。

问题相关代码,请勿粘贴截图
<script>
    function loadDoc() {
        var xhttp = new XMLHttpRequest();
        xhttp.onreadystatechange = function () {
            if (this.readyState == 4 && this.status == 200) {
                //document.getElementById("demo").innerHTML = this.responseText;
                var rt = this.responseText;

            }
            else {
                alert("readystate:" + this.readyState);
                alert("status:" + this.status);
            }
        };
        var url1 = "http://qt.gtimg.cn/q=sh600690";    // 可以用
        var url2 = "https://q.stock.sohu.com/hisHq?code=cn_600690&start=20220527&end=20220527&stat=1&order=D&period=d&callback=callback&rt=jsonp";  // 能连接(状态4)但是就是不返回值也不明白为什么。。。
        xhttp.open("GET", url1, true);
        xhttp.send();
    }
</script>
运行结果及报错内容

例子1:readystate 可以成为4 说明连接了, status一直是0说明没返回东西。
例子2:正常获取返回值。

我的解答思路和尝试过的方法
我想要达到的结果

成功解释为什么。