What can replace iframe to load pages from other sites without redirection

recently, a project on Wechat"s official account encountered a problem, which requires an external link (for example, Baidu http://www.baidu.com;). ) display in their own html, convenient for statistical access users, and the final access link can only be my own link, because to prevent users from skipping our direct access to the original address, the entire introduction of iframe is currently used, but there are some problems. Now I would like to ask you if there is a better way ~

< hr >

the following is a supplement to the problem:

  1. if you use iframe, a third-party web page, a dialog box will pop up to guide the user to authorize access to basic WeChat information (Wechat"s Oauth2.0 authorization)
  2. if a user enters this third-party web page, the page content will change

this is best to use iframe, to make a page by yourself to call other people's interfaces, which is a bit troublesome.


the back end first gets the page content, then converts the links inside to absolute links, and then outputs the results. This is equivalent to the content of your own service.


now check whether you have permission log warning in Wechat developer tool.
personal doubt:
1. You have made permission restrictions on iframe, such as not allowing children to control parent page jumps (required for Oauth2.0)
2. The third party has made restrictions under iframe;
3. Js error caused by father-son relationship.

your function of changing third-party content has been agreed upon by both sides, so just pass the parameter directly and jump to the past.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b309ea-2bd38.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b309ea-2bd38.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?