Comment 1 for bug 816607

Revision history for this message
Assem Chelli (عاصم شلي) (assem-ch) wrote :

Salam ,

First ,thank you for submiting this bug. as i read it's about the browsers policy that restrict getting information from other websites.

I added this header to the service script:
    print "Content-Type: application/json; charset=utf-8"
    #Allow cross domain XHR
    print 'Access-Control-Allow-Origin: *'
    print 'Access-Control-Allow-Methods: GET'
    print

Also I added this to .htaccess :
    Header set Access-Control-Allow-Origin *

I hope this helps.