Whats the best way to send a payload from a scripting block

Hey!

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?

Best

Dominik

Hi Dominik,

Thanks for posting! We have a new feature currently in beta to solve this exact problem – you can read more and sign up at the link here!

Hope this helps :blush:

1 Like

Already did :slight_smile: Perfect timing! Thanks a lot!

1 Like

This topic was solved and automatically closed 3 days after the last reply. New replies are no longer allowed.