Is it safe to use $.support.cors = true; in jQuery?

前端 未结 3 583
盖世英雄少女心
盖世英雄少女心 2020-11-27 03:19

I was trying to hit a web service on a different domain using jQuery\'s ajax method. After doing some research it looks like it does not allow this is by design to prevent

3条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-27 04:07

    When a hacker is able to inject script code to change the requests to another domain, he is also able to set this javascript flag in the script.

    So wether this flag is set doesn't change much at this point of the intrusion.

提交回复
热议问题