AWS GET request with body rejected by CloudFront

落花浮王杯 提交于 2019-12-05 17:57:04

GET requests cannot contain a request body. Try using POST instead.

If you want to send limited data in a GET request, you can use query parameters.

You can see in the AWS Lambda Docs that this isn't possible here:

https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-lambda-non-proxy-integration.html

This is because the GET request that you submitted cannot take a payload and fails the request validation.

You could perhaps use an EC2 instance or other service that doesn't use API Gateway to handle the request.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!