What makes JSFiddle secure from XSS based attacks? [closed]

。_饼干妹妹 提交于 2019-12-18 12:47:46

问题


I am curious, what makes www.jsfiddle.net secure from XSS based attacks? They have a support for accounts so clearly any script they run on the browser may do evil things.


回答1:


If you look at the results pane for a fiddle you'll notice that it's actually an IFRAME pointing to a different domain which means that built in security will kick in which generally prevents access to the parent window.

This fiddle for example : http://jsfiddle.net/jomanlk/y9zCK/

Is actually served by : http://fiddle.jshell.net/jomanlk/y9zCK/show/



来源:https://stackoverflow.com/questions/6732501/what-makes-jsfiddle-secure-from-xss-based-attacks

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