Authenticate Windows Authentication using Javascript

前端 未结 3 1274
温柔的废话
温柔的废话 2020-12-06 02:07

I have to transfer my client from one website to another website. This happens in client side. In this 2nd website, its using windows basic authentication system. So It popu

3条回答
  •  北荒
    北荒 (楼主)
    2020-12-06 02:34

    If this is Windows Authentication, then the response won't be prompting the client for credentials, the browser will be attempting to pass the credentials itself already. It does not quite work the way HTTP does -- you actually need to configure the browser itself to to have it send the authorization based on Windows credentials.

    It does not appear that there is a simple JS solution to this at all.

提交回复
热议问题