当前位置: 动力学知识库 > 问答 > 编程问答 >

How to ignore ERR_INSECURE_RESPONSE error in javaScript or php

问题描述:

I am working with web application (PHP and javaScript) , and i am using splunk javaScript sdk to connect to splunk.

But while making API call, i am getting "ERR_INSECURE_RESPONSE" error in console.

Is there any way to ignore this error (using any script or splunk conf file)?

I am using apache as server.

Thanks!

网友答案:

If you are using https as a protocol, then unless you have proper certificates deployed to your server that are recognized by your browser, you have to load URL to your back-end resource in the browser bar and accept the exception. Then browser should allow the communication till the permission is expired.

On the production you have to deploy proper certificates for the browsers to allow the communication w/o prompting to the user.

Btw, here is similar topic: Failed to load resource: net::ERR_INSECURE_RESPONSE

分享给朋友:
您可能感兴趣的文章:
随机阅读: