“CAUTION: provisional headers are shown” in Chrome debugger

前端 未结 30 3512
滥情空心
滥情空心 2020-11-22 11:52

I noticed a strange caution message when looking at downloaded resources using Google chrome inspector (F12):

Caution provisional headers a

30条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 12:05

    Here is another solution.

    If you encounter this issue with $ajax() call, add http:// before your serverhost will solve your problem.

    var requestURL = "http://" + serverHost;
    $.ajax({
        dataType: "json",
        url: requestURL,
        data: data,
        success: success    
    });
    

提交回复
热议问题