here code
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script> </head> <body> <iframe id="1" src="https://bing.com" frameborder="2" height="300px" width="800px"></iframe> </body> </html> when type $('#1').contents() in chrome console, raise:
uncaught domexception: failed read 'contentdocument' property 'htmliframeelement': blocked frame origin "http://localhost:63342" accessing cross-origin frame. my question is: how html of iframe(i found exist question can't fix question)
my question is: how html of iframe(i found exist question can't fix question)
if exist question said "you can't that", exist answer correct
however, if site wish read has cors set, read raw html (not iframe though)
there possibility using browser add-on, i'm guessing don't want obviously, i.e. instruct visitors site download , install browser add on
Comments
Post a Comment