Well it been a while as i have been busy rebuilding megatorrentz.com.
But in my travels of the internet i found out about a the range of Cross Domain AJAX calls. are you aware that a web browser will make these calls all you have todo is send some custom headers,
Access-Control-Allow-Origin: *
This will tell the browser making the connection that any web site is allowed to connect this is all you need to use GET to access a page but if your needing to send data though POST you need a little more
Access-Control-Allow-Methods: GET,POST
Access-Control-Allow-Headers: Content-Type
These will tell the browser making the connection that it supports GET and POST but then when posting data you need to set the Content-Type all though the browser will do this for you for security it is still sent so you need to tell the server your support it.
Once you send these from your Server you can make requests from pages on another server
No comments:
Post a Comment