微信登錄無法跳轉問題


頁面結構如下,在頁面中潛嵌套了微信的登錄頁面,但是在ie瀏覽器中掃碼后無法跳轉

解決: 添加 'sandbox' 屬性即可,允許 iframe 中進行頁面的跳轉

<iframe :src="link" frameborder="0" height="400px" width="300px" sandbox="allow-scripts allow-top-navigation allow-same-origin"></iframe>

屬性值和兼容性: 

 

 

參考: https://blog.csdn.net/Mangojjx/article/details/91992519

    https://www.w3school.com.cn/tags/att_iframe_sandbox.asp

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM