开发者

prevent break out of iframe

I 开发者_运维问答have a iframe in my webpage (facebook like etc.). can i prevent a break out from this iframe?

I did not the iframe can data be read at my session / forms etc


If you're worried about security: No need. An iframe containing an external page can not read sessions, or submit forms, in the parent page. The Same Origin Policy prevents that.

Other than that: Preventing frame busting is a complicated task. See this question for some of the complexities, and a working code example for a "frame buster buster".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜