Network error on calling REST API

Hi,

I’m trying to call a REST API to generate emails as in one of my workflows. The problem is I’m getting a Network error and was not able to figure out why is this happening

Looking for some advice !!

Screenshot 2024-02-08 at 15.16.23

I have tested it with Postman and got it to work with the same configuration. refer image below

It’s probably a CORS error, and probably you don’t want to make this call directly from weweb because you will expose your secret token. You should setup an endpoint on your backend where you check if the request is from a legitimate user and then make the api request