开发者

how to prevent when a website is blocking its usage within an iframe tag

开发者 https://www.devze.com 2023-02-19 08:05 出处:网络
In my website, I preview any link with a tooltip, but when its facebook or meneame.net, for example; they block it and open t开发者_JS百科heir webiste in you website\'s current window.

In my website, I preview any link with a tooltip, but when its facebook or meneame.net, for example; they block it and open t开发者_JS百科heir webiste in you website's current window.

Exanple <iframe src="http://meneame.net/bababa"></iframe>

How can i prevent that? i mean, maybe open it in a '_blank' page instead would be perfect for me. is it possible?

PD: the option of trying to detect which URL is about to be opened its not valid for me as long I don't know all the websites that do so.


This problem is due to the "same origin policy". It was design specifically to prevent wrapping pages from hijacking iframe content. It's a security feature. If we could circumvent this all browsers will then be insecure.

0

精彩评论

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