开发者

Access denied when accessing properties from inside an iframe

开发者 https://www.devze.com 2023-01-18 04:31 出处:网络
In my HTML page I have an iframe loading an external site. I want to access the properties inside the frame. I am getting an access denied error. How do I r开发者_开发知识库esolve this?You can\'t acce

In my HTML page I have an iframe loading an external site. I want to access the properties inside the frame. I am getting an access denied error. How do I r开发者_开发知识库esolve this?


You can't access data from external sites when you are working client side. This would be a security risk.

To work around, have your server grab the data from the remote site instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消