2017-05-24 32 views
1

我有兩個網站example.com & example.tech我想從example.tech頁面嵌入example.com阻止來源於訪問跨源幀的幀。我同時擁有網站

我一直在使用的iframe嵌入它,但問題是iframe的高度不是自動的。我不想顯示iframe滾動條。

所以,我試圖解決從這裏:How to set iframe height:auto in HTML5但我得到這個錯誤:

Uncaught DOMException: Blocked a frame with origin 
"https://example.com" from accessing a cross-origin frame. 

再次,我發現這個SecurityError: Blocked a frame with origin from accessing a cross-origin frame但它不是爲我工作。

幫助我擺脫這種情況。您的幫助將不勝感激!

回答

相關問題