简体   繁体   中英

js/jquery - How to change existing iframe attribute from inside the iframe

I am working with TFS and I'm trying to upload an extension(web page) to the dashboard. When the dashboard loads my extension it wrapps my it with Iframe.

TFS Iframe example

The iframe sandbox attribute missing the allow-same-origin which allow me to manipulate the page that contains my extension. Is there a way to change the iframe attribute from my extension web page? the whole page looks like:

<html> // Tfs page
<body>
<div> // main page
    <iframe sandbox='allow-scripts ...'> // the iframe that wrapps my extension, missing 'allow-same-origin'
        <html> // my extension
        <body>
        ...
        </body>
        </html>
    </iframe>
</body>
</html>

Thanks...

我认为这是有目的的:您应该使用SDK与VSTS / TFS进行交互,否则很容易想象一个在深层网络中销售公司知识产权的流氓扩展。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM