无法在wordpress页面中加载iframe

I have been trying to load an section of page using iframe in my wordpress site. I can load certain sites in the iframe without any issue but while i try my required page it doesn't work as expected just inside the page. The iframe src is loading perfectly if its opened individually

I have tried most of the answers mentioned here in stackoverflow and other forums, still can't get a solution for this. I tried adding code in .htaccess, also tried adding code in functions.php

This is the iframe src I want to load.

It can be loaded individually in browser but not inside an iframe. I am getting the following error in console while i try to load it :

[ERROR] Permission denied to access property "hash" on cross-origin object

Is this an issue with my code, server config or with the URL itself?

Thanks

查看全部
du0204
du0204
2019/07/16 17:50
  • wordpress
  • php
  • iframe
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

1个回复