在Firefox上,CORS请求给出错误“:".(冒号) [英] On Firefox, CORS request gives error ":" (colon)

查看:58
本文介绍了在Firefox上,CORS请求给出错误“:".(冒号)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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);

错误消息只是:".

推荐答案

尝试禁用AdBlock

我遇到了一个类似的问题,即我的所有XMLHttpRequest都经过处理,除了一些非常具体的问题,即使是很小的URL更改也解决了该问题.我唯一得到的是一个冒号:在控制台中.最后,我意识到AdBlockPlus阻止了至少一个此类请求的通过(该请求的URL中包含横幅").

Try Disabling AdBlock

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请求给出错误“:".(冒号)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆