Why is there a need for the Same-origin policy (SOP)?

时间秒杀一切 提交于 2019-12-11 12:44:19

问题


I did read a lot about SOP. What it does, and how it works, for example here in Wikipedia: http://en.wikipedia.org/wiki/Same-origin_policy

And I can often read, that the SOP is an important element of security in browsers and web-applications, that prevents attack.

My problem is: I can't think of any scenario where a cross-domain access would be dangerous for anyone.

Please can you describe at least one scenario that is prevented by SOP and would be a detriment for someone if it wasn't prevented .

来源:https://stackoverflow.com/questions/30108066/why-is-there-a-need-for-the-same-origin-policy-sop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!