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

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -