Amazon CloudFront error

I am integrating HubSpot to an app on a paid plan. I can successfully authenticate a user, prompt them which account they wish to connect, and then get them back to the redirect_uri location (which is back to my app).

However, when I get back to my app I get the following error:

Raw error:

ERROR: The request could not be satisfied


The request could not be satisfied.

This distribution is not configured to allow the HTTP request method that was used for this request. The distribution supports only cachable requests.

Generated by cloudfront (CloudFront)
Request ID: hGnpi-TtTBGC8FCnJML-posY5IiLYJRYZYPNxuRJ1LHeS1ySllx3gw==

Has anyone come across anything similar when authenticating via an API?

You are probably receiving this error because you are doing a HTTP POST.
To resolve this error you will need to set up CloudFront to allow HTTP POST’s