It is enforced by the browser, not the server: the request still reaches the server. It controls reading, so it is not a CSRF defense.