So when I try to make a post request to my server, I get the error: “reason: unable to verify the first certificate
[backend/crmdata.jsw, postToWebhook] called with (null)” . I tried both Comodo and a Godaddy cert. We are running a nginx server on the otherside. Can POST via Postman. Can Post if the browser does it. Cannot post if Wix Backend Does it. Any ideas?
Here is the backend js:
// In your site's Backend (e.g., backend/data.js)
import {fetch} from 'wix-fetch';
export function postToWebhook(data) {
return fetch("URL REDACTED FOR SECURITY", {
"method": "post",
"headers": {
"Content-Type": "application/x-www-form-urlencoded"
},
"body": data
}).then(response => response.json());
}