I'm connecting to a host with ajax and get a response back. So far so good.
I need to find a way to add credentials to my post to the cross domain server.
The only thing i could find was that i need to add "xhr.withCredentials = true;" to my request, but I don't know how.
Any help?
I have been looking to do this for ages. I want to set my own header so only my app can access those scripts but I'm still unsure on how to do this with PHP.