allowPost

  • Property Manager name: Allow POST
  • Behavior version: The v2023-01-05 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 all other methods result in a 403 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}}