- iframe 授权登录 手机端报错 “请在企业微信客户端打开链接 ”
想在iframe里面跳转授权登录,简单代码如下图, 企业微信PC端客户端正常跳转, 可以手机端,一直报错“请在企业微信客户端打开链接”, 请问应该如何处理? [图片] [图片]
2020-03-23 - 网页里使用iframe内嵌了企业微信的免密登录链接, 但这个iframe会展示为空白
在Android, iOS企业微信、Mac企业微信会出现这个问题。Windows企业微信却能展示正常 重现方式: 在手机端企业微信中打开一个使用iframe内嵌免密登录链接的网页,网页的大概代码示例如下(真实appid和redirect_uri我做了替换): ' <!DOCTYPE html> <html> <head> <title>测试</title> </head> <body style="border: 1px solid;"> <iframe src="https://open.weixin.qq.com/connect/oauth2/authorize?appid=abc&redirect_uri=https%3A%2F%2Fguandata.com&response_type=code&scope=snsapi_base&state=STATE" frameborder="0" width="100%" height="100%" sandbox="allow-forms allow-scripts allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin"></iframe> <body> </html> ' <!DOCTYPE html> <html> <head> <title>测试</title> </head> <body style="border: 1px solid;"> <iframe src="https://open.weixin.qq.com/connect/oauth2/authorize?appid=abc&redirect_uri=https%3A%2F%2Fguandata.com&response_type=code&scope=snsapi_base&state=STATE" frameborder="0" width="100%" height="100%" sandbox="allow-forms allow-scripts allow-modals allow-orientation-lock allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin"></iframe> <body> </html>
2021-03-04