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.
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