Hi guys!
We have a third party server, running with a self signed certificate, which we use for our application.
We are running some fetch requests to this server API and we were using http up to last week without a problem, but we updated the server to https using a self signed certificate and now the requests won’t work.
My question is: Is there any way, that using Wix JavaScript API, I can run a fetch to a self signed certificate?
I do not believe you can, maybe in a backend module where you might be able to send a property to ignore self signed errors.
let options = {
method: GET,
json: true,
uri : “https://”,
body: payload,
insecure: true
};
Try this so you just add the insecure: true to the options.
Hi Andreas,
Unfortunately I have already tried “insecure” and “rejectunauthorized” with no success.
Ok, then I would just buy the cheapest certificate and install that.