Avoid HTTP auth popup in a chrome extension (digest)

前端 未结 3 1705
[愿得一人]
[愿得一人] 2021-02-01 09:39

I\'m currently developing a chrome extension, I need to access some http-auth protected resources (webdav). The HTTP auth is using (in the best case) a digest authentication.

3条回答
  •  忘了有多久
    2021-02-01 10:14

    It's really seems to be a lack in chrome behavior, other people are wishing to see something as the mozBakgroundRequest Chris highlighted, there already a a bug report for that.

    There are (hackish) workarounds suggested by some developers in the bugtracker :

    • use a webworker and a timeout to perform the request
    • do the same with the background page

    In both case, the benefit is that it won't pop an authentication box... But you will never know if it's a real server timeout or a 401. (I didn't tested those workarounds).

提交回复
热议问题