Hi Make Community!
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\nCloudFront\r\n\r\n\r\n”
}
The response indicates a 307 Temporary Redirect