Dummy trust manager that trusts all certificates

I have an nginx server running for the web application, now I’m trying to access the server sending the username and pass for authentication in the login url, but I’m getting ERR:insecureResponse, this is I think due to certificate not being signed.
In native android we have a trustManager through which we can accept all certificates, do we have something of that sort in ionic? Please Help new to this.