ajax - CORS-aided cross-origin-XHR -
modern browsers support cors handily. if cors-aided cross-origin-xhr sent cors-ignorant site, xhr succeeds in no question.
does expose more vulnerability in regard? how strictly enforce same origin policy on today's browsers?
take @ how preflight requests work in cors. cors preflight request protects servers unauthorized requests first asking server whether ok make cross-origin request. if server says "yes", browser continues request. otherwise request fails.
note there types of requests don't need preflight requests. however, these requests possible before cors. example, simple request not need preflight, can made script tag.
you can learn more cors , preflight here: http://www.html5rocks.com/en/tutorials/cors/
Comments
Post a Comment