HTTPS request avoiding CORS with authentication and custom/self-signed certificate

Really no answer here?

Let’s simplify: How to let requestUrl use a self-signed certificate? (in pem file or Windows cert store)