Invalid HTTP response code '0

I try to use a script that uses CPAINT and I keep getting the error above when I click on a favorite item (5 star system).

It looks like he is making an AJAX request, but I do not see this from my Firebug to debug it - why is this so?

More importantly, what does error code 0 mean?

Thank you all for your help.

+2
source share
1 answer

Response code 0 of XMLHttpRequest may indicate that you are blocked by the same origin policy . Make sure you use relative URLs for your AJAX requests.

You can also check the following stack overflow message for one possible solution to circumvent the same origin policy:

+5
source

Source: https://habr.com/ru/post/1390598/


All Articles