Skip to main content
Solved

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

Best answer by Erin_OHern

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 😊

View original
Did this topic help you find an answer to your question?

2 replies

  • Participating Frequently
  • 28 replies
  • Answer
  • January 19, 2021

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 😊


Already did 🙂 Perfect timing! Thanks a lot!


Reply