• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hztDbFXEed73dkMf
V2EX  ›  程序员

发现微信内置的浏览器 http basic auth 弹不出账号密码框

  •  
  •   hztDbFXEed73dkMf · Jan 20, 2019 · 4494 views
    This topic created in 2697 days ago, the information mentioned may be changed or developed.

    RT.

    今天想给网页加一个简单的 http basic_auth 认证,

    发现在微信中浏览弹不出来账号密码框,然后直接 401 authorization required 了

    验证了下,js 的 alert 在微信浏览器中弹不出来了。

    想简单的加个认证,有什么好的方法吗

    4 replies    2019-01-20 17:29:36 +08:00
    7654
        1
    7654  
       Jan 20, 2019
    想多了,老老实实加个登录页面吧
    cominghome
        2
    cominghome  
       Jan 20, 2019
    右上角换浏览器打开
    lorryo
        3
    lorryo  
       Jan 20, 2019
    安全考虑,这个肯定不会让弹的。
    justin2018
        4
    justin2018  
       Jan 20, 2019
    遇到过

    做了个登录页 和 消息提示浮层页面~~~ /(ㄒoㄒ)/~~

    囧~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4961 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 09:45 · PVG 17:45 · LAX 02:45 · JFK 05:45
    ♥ Do have faith in what you're doing.