Page 4 of 4

Debugging

Posted: Wed Oct 17, 2012 4:42 am
by Barbara

Or can I access your proxy in my code?


Debugging

Posted: Wed Oct 17, 2012 5:40 am
by Barbara

Ah found a much easier solution. You just need to add this line to the top of the remote php script

header(“Access-Control-Allow-Origin: [url=http://project.tiggzi.com”]http://project.tiggzi.com”[/url]);

It works.


Debugging

Posted: Wed Oct 17, 2012 1:30 pm
by maxkatz

That's how you make the service support cross-domain calls.


Debugging

Posted: Wed Oct 17, 2012 1:31 pm
by Barbara

Yes, if it's a php script