After reading about CORS (Cross-Origin Resource Sharing), I don\'t understand how it improves security. Cross-Domain AJAX communication is allowed if the correct ORIGIN head
The purpose is to prevent this -
The ideas is that your bank's website needs some way to tell your browser if scripts on website X should be trusted to access pages at your bank.