GuideReference
TrainingSupportCommunity
Reference

allow_​post

  • Property Manager name: Allow POST
  • Behavior version: The v2024-01-09 rule format supports the allow_​post 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}}