开发者

prevent break out of iframe

开发者 https://www.devze.com 2023-01-21 19:41 出处:网络
I 开发者_运维问答have a iframe in my webpage (facebook like etc.). can i prevent a break out from this 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

精彩评论

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