Calling the webflow API from a browser or from an AWS Lambda function

Hey guys;

When trying to make calls to the webflow API from the browser (using fetch) I encounter a CORS issue. (Side note: it would be nice to be able to whitelist domains and have cross origin headers passed to the client to get around this)

So my next thought was to push the webflow fetching code to our own API (AWS gateway calling lambda functions). For some reason it just hangs.

I am using a generated API key as my access token and it works fine when I call the API via postman.

What am I missing? Any pointers appreciated.

Thanks!

I’m thinking this could be because my Lambda function doesn’t have access to the wider internet. Will confirm.