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

CORS is not a tool to turn resources private, but to protect the browser (not the server's content) from cross domain requests.


Exactly, the attacker can always not use the browser and emulate a browser request if motivated enough.


Yes, that's precisely why CORS is a poor fit for authentication :)


Sure, but I don't see why the tip in OP is "don't use CORS". To me that implies there is actually something insecure about using it.


Yeah you can use CORS securely, there are just pitfalls to look out for.




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

Search: