SitePoint Sponsor

User Tag List

Results 1 to 1 of 1
  1. #1
    SitePoint Member
    Join Date
    Apr 2011
    0 Post(s)
    0 Thread(s)

    Error XMLHttpRequest can't load, origin not allowed

    Hi there,

    I'm trying to use Jquery's AJAX function to call a php script and return some html data. The console in Chrome tells me there is the following error, which I've never seen before:

    "XMLHttpRequest cannot load Origin is not allowed by Access-Control-Allow-Origin."

    I have a .htaccess rule to rewrite every "www" to non www version, I don't know if it has something to do.

    Could you help me out here?
    Last edited by lalog00; Aug 28, 2011 at 11:18. Reason: didn't want links to parse
    Web designer, programmer & webmaster for 7+ years
    Hosting 11 sites in Hospedaje Web México
    CentOS|cPanel|R1Soft|Softaculous|Cloud Hosting|Green Hosting

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts