How to enable CORS on your server

This website is a great resource on How to enable CORS on your server.