Cross site scripting on the same domain, different sub domains

前端 未结 2 1523

I have an iframe I\'m using to pull in some content hosted by a 3rd party vendor to our website. We are trying to determine the height of that content to adjust the iframe h

2条回答
  •  鱼传尺愫
    2020-12-19 12:40

    Also take a look at cross window messaging

    This first page is the sender - it's calling postMessage (sending the textual message) and also holds the iframe within which the receiving window is held.

    
    

    The follow page is the receiver - it has an event listener bound which watches for messages being passed to it and injects them in to the DOM.

    This iframe is located on dev.jquery.com
    
    Send me a message!

提交回复
热议问题