在 Chrome 上,我可以毫无问题地提出跨域请求,但是在 Firefox (Ubuntu 14.04) 上,我收到一个错误,该错误仅包含调用 xmlhttprequest 的行上的冒号.
On Chrome, I'm having no troubles making a cross domain request, however on Firefox (Ubuntu 14.04), I get an error that consists only of a colon on the line that calls for the xmlhttprequest.
xmlhttp.open("GET", "http://x.x.x.x:xxxx/folder/file.xml", false);
错误信息只是:".
我遇到了一个类似的问题,我的所有 XMLHttpRequest 都在通过,除了一些非常具体的问题,即使是微小的 URL 更改也可以解决问题.我得到的唯一东西是一个冒号 : 在控制台中.最后,我意识到 AdBlockPlus 至少阻止了其中一个请求通过(该请求的 URL 中有横幅").
I was having a similar issue where all of my XMLHttpRequests were going through except for a few very specific ones where even minor URL changes fixed the problem. And the only thing I was getting was a colon : in the console. In the end I realized that AdBlockPlus was blocking at least one these requests from going through (the request had 'Banners' in the URL).
所以我不确定这是否能解决您的问题,但我遇到过多次.
So I'm not sure if this would have solved your problem, but I've encountered it multiple times.
这篇关于在 Firefox 上,CORS 请求给出错误“:"(冒号)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
即使在调用 abort (jQuery) 之后,浏览器也会等待Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在调用 abort (jQuery) 之后,浏览器也会等待 ajax 调用
JavaScript innerHTML 不适用于 IE?JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不适用于 IE?)
XMLHttpRequest 无法加载,请求的资源上不存在“AXMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 无法加载,请求的资
XHR HEAD 请求是否有可能不遵循重定向 (301 302)Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 请求是否有可能不遵循重定向 (301 302))
NETWORK_ERROR:XMLHttpRequest 异常 101NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 异常 101)
XMLHttpRequest 206 部分内容XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分内容)