Php 无法通过Amazon CloudFront发送请求:403错误

Php 无法通过Amazon CloudFront发送请求:403错误,php,laravel,amazon-web-services,amazon-cloudfront,Php,Laravel,Amazon Web Services,Amazon Cloudfront,我在laravel框架上创建了一个AWS Lambda函数,其中包含crud创建、查看、更新和删除操作 我想更新记录: User::where('email', 'balbla@gmail.com')->update(['name' => $request->get('name')]); 但我有一个错误: 403 ERROR The request could not be satisfied. Bad request. We can't connect to the ser

我在laravel框架上创建了一个AWS Lambda函数,其中包含crud创建、查看、更新和删除操作

我想更新记录:

User::where('email', 'balbla@gmail.com')->update(['name' => $request->get('name')]);
但我有一个错误:

403 ERROR
The request could not be satisfied.
Bad request. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner. 
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation. 
Generated by cloudfront (CloudFront)

当我执行HTTPGET方法时,所有这些都可以完美地工作。我已经阅读了有关CloudFront的文档,但不知道如何修复它。我用过邮递员。如果我理解$request的问题,我需要在Amazon CloudFront中创建分发。

那是我的错误。我打开了postman并使用GET方法创建了新的查询,并将json添加到一个raw:

{
    "name" : "bla bla some name"
}

当我删除这个json时,一切都正常了,这是我的错误。我打开了postman并使用GET方法创建了新的查询,并将json添加到一个raw:

{
    "name" : "bla bla some name"
}

当我删除这个json时,所有的json都工作了

CloudFront不允许通过body获取。CloudFront不允许通过body获取。