In Firefox, the CORS query gives the error ":" (colon)

In Chrome, I have no problem with cross domain request, however in Firefox (Ubuntu 14.04) I get an error message consisting only of a colon in the line that causes xmlhttprequest.

xmlhttp.open("GET", "http://xxxx:xxxx/folder/file.xml", false); 

The error message is simply ":".

+7
javascript firefox cors
source share
4 answers

Try disabling AdBlock

I had a similar problem where all my XMLHttpRequests passed, with the exception of a few very specific ones, in which even minor changes to the URLs fixed the problem. And the only thing I got was a colon: on the console. In the end, I realized that AdBlockPlus blocks at least one of these requests from passing (the request had โ€œBannersโ€ in the URL).

So I'm not sure if this would solve your problem, but I have come across it several times.

+8
source share

using Firebug, the problem turned out to be

 Blocked loading mixed active content 
0
source share

I had the same error in a CORS POST request. I use https://cors-anywhere.herokuapp.com/ to get around a policy of the same origin. The problem was NoScript blocking the external domain , so if you use the external API in your request, this may solve the problem.

0
source share

Same as this answer , however for me there is no problem with either AdBlock or uBlock.

There is uMatrix .

You may find that it blocks the request at this URL:

 chrome://umatrix/content/logger-ui.html 

You can enable it manually by clicking on this field:

and choosing to enable XHR in the uMatrix popup:

The lock is retained even if you have code packaged in a correctly installed add-in (the blue panel contains the Internal UUID Firefox add-on), so if you ever wondered why some add-ons hope It works while uMatrix (or likes) is turned on This may be one of the reasons.

0
source share

All Articles