Skip to main content
edited tags
Link
Anders
  • 65.8k
  • 25
  • 185
  • 226
Tweeted twitter.com/#!/StackSecurity/status/639036683581804544
Source Link
Dan Dinu
  • 799
  • 1
  • 6
  • 5

Is CORS helping in anyway against Cross-Site Forgery?

I've been reading in the last couple of days about CORS and in a lot of places it's mentioned as it is a "Security" feature to help the world from cross domain forgery.

I still don't see the benefit and the reasoning for CORS. Ok, browsers will do a preflight request / server will validate the origin. But an attacker can easily create an HttpRequest top-bottom with whatever Headers(Origin) he wants and he will get access to the resource.

How is CORS helping and what's the benefit of it?