Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If attacker.com makes a request trying to read bank.com/my-bank-account-number should attacker.com be able to do that and read the response? The same origin policy blocks the response from being read.

Now that we've established that by default a.com cannot read a response from b.com , CORS allows b.com to relax this restriction so that a.com can read from b.com . This allows one website to communicate back and forth to the server of a different website, making certain APIs easier. I don't consider that useless.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: