Error 307 with CloudFront API in Make.com While Postman Works Fine

Hi Make Community! :wave:

I’m facing a strange issue when trying to connect to an API endpoint hosted on CloudFront using Make.com. Here’s the setup:

  • The API works perfectly in Postman with the following cURL:

curl --location ‘http://dqukcdo06h959.cloudfront.net/office/
–header ‘x-api-key: xxx123’
–header ‘Content-Type: application/json’
–data ‘{
“phone_number”: “+12345678901”
}’

When I replicate the exact configuration in Make.com (HTTP module), I receive the following response:
{
“statusCode”: 307,
“headers”: [
{ “name”: “server”, “value”: “CloudFront” },
{ “name”: “location”, “value”: “https://dqukcdo06h959.cloudfront.net/office/” },
{ “name”: “x-cache”, “value”: “Redirect from cloudfront” },
// Other headers omitted for brevity
],
“data”: “\r\n307 Temporary Redirect\r\n\r\n

307 Temporary Redirect

\r\n
CloudFront\r\n\r\n\r\n”
}
The response indicates a 307 Temporary Redirect

  • Has anyone encountered similar 307 errors with CloudFront APIs in Make.com?
  • Is there a specific setting in Make.com that might be causing this issue (e.g., redirect handling)?
  • Could this be related to how Make.com handles HTTP versus HTTPS redirects?