Cross site scripting on the same domain, different sub domains

前端 未结 2 1525

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:35

    From one of your subdomains, you can (with some exceptions) set the domain to allow broader access to other subdomains in the same main domain.

    Take a look at this page: http://www.tomhoppe.com/index.php/2008/03/cross-sub-domain-javascript-ajax-iframe-etc/

提交回复
热议问题