Javascript XMLHttpRequest: Ignore invalid SSL Certificate

后端 未结 3 507
鱼传尺愫
鱼传尺愫 2021-02-07 12:40

so I have been having trouble with grabbing information from a device that is interfaced with via https due to the fact that it has an invalid security certificate. I know the

3条回答
  •  我在风中等你
    2021-02-07 13:14

    No, there isn't. XMLHTTPRequest doesn't allow you to override that. Being able to override SSL security might make sense in your case, but if you think about it, it would be a bad idea in general. You'd never want to allow arbitrary javascript code on the internet to connect to a supposedly secure service that the js host (the browser) knows has a possible MITM issue.

提交回复
热议问题