Allow POST

By default, ​Akamai​ honors GET, HEAD, and OPTIONS requests to your origin. Include this behavior to allow HTTP requests using the POST method.

How it works

When enabled, POST requests pass to the origin, but the content isn't cached. When disabled, ​Akamai​ edge servers deny all POST requests to this property with a 403 response.

Features and options

You can also decide whether to allow POST calls without a Content-Length header.

FieldWhat it does
BehaviorEnables or disables the behavior.
Allow POST without Content-Length headerBy default, POST requests require a Content-Length header, or they result in a 411 error. The error occurs even if the POST request doesn’t contain a body and theoretically shouldn’t require Content-Length header. If you enable this option and don’t specify the Content-Length, the edge server will look for a Transfer-Encoding header to determine how to chunk the data. If neither header is present, the server assumes the request has no body, and it adds a header with a 0 value to the forward request.

Related topics

See the Allow OPTIONS, Allow PATCH, Allow DELETE, and Allow PUT behaviors.