Allow PUT

Include this behavior to allow HTTP requests using the PUT method.

How it works

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

You need a Content-Length header

PUT requests require a Content-Length header, or they result in a 411 Length required error. The error occurs even if the PUT request doesnโ€™t contain a body. If you enable Allow PUT, include this header with a request and indicate the size of the message body, in bytes. If the PUT request doesn't have a body, include the header and set it to 0.

Related topics

See the Allow DELETE, Allow PATCH, Allow POST, Allow OPTIONS behaviors.