allowPost

  • Property Manager name: Allow POST
  • Behavior version: The v2024-10-21 rule format supports the allowPost behavior v1.3.
  • Rule format status: GA, stable
  • Access: Read/Write
  • Allowed in includes: Yes

Allow HTTP requests using the POST method. By default, GET, HEAD, and OPTIONS requests are allowed, and POST requests are denied with 403 error. All other methods result in a 501 error. See also the allow​Delete, allow​Options, allow​Patch, and allow​Put behaviors.

OptionTypeDescriptionRequires
enabledboolean

Allows POST requests.

{"displayType":"boolean","tag":"input","type":"checkbox"}
allow​Without​Content​Lengthboolean

By default, POST requests also require a Content-Length header, or they result in a 411 error. With this option enabled with no specified Content-Length, the edge server relies on a Transfer-Encoding header to chunk the data. If neither header is present, it assumes the request has no body, and it adds a header with a 0 value to the forward request.

{"displayType":"boolean","tag":"input","type":"checkbox"}
{"if":{"attribute":"enabled","op":"eq","value":true}}