0

In a ajax request, I'm getting this error sometimes and just in some computers:

XMLHttpRequest cannot load http://www.xxx.com.br/sis/manager/product_variations/add. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xxx.com.br' is therefore not allowed access

The /sis/ is just temporary location for the system.

This is the ajax:

 $.ajax({
                type: "POST",
                url: domain+'manager/product_variations/add',
                data: data,

......

Notice that error just appears in some computers, I don't know why.

Instead off 200 OK this give me 302 moved temporaly.

Igor Martins
  • 1,945
  • 5
  • 31
  • 53
  • 1
    Sounds like sometimes requests made from `http://xxx.com.br` and sometimes from `http://www.xxx.com.br`. These are considered different domains with regard to requests. So is `http` different than `https`. Is your `domain` variable hard coded? – charlietfl Feb 26 '15 at 17:29
  • @charlietfl TY... your comment helped me a lot! – Igor Martins Feb 27 '15 at 15:42

0 Answers0