I’m trying to send an array of customer data to an API webhook on a external service (e.g. Sendgrid/Zapier), using a POST request in a scripting block.
Using the basic fetch() function, CORS is preventing it to work.
Using a CORS proxy like https://cors-anywhere.herokuapp.com/ isn’t an option because I don’t want to send sensitive data through this service.
What’s the best way to fix this?
Solved! Go to Solution.