Skip to main content
By default, a CDN resource accepts all standard HTTP methods. The Enable HTTP methods option restricts which methods the CDN accepts, returning 405 Method Not Allowed for all others before the request reaches the origin. To configure allowed HTTP methods:
  1. Log in to the Gcore Customer Portal and navigate to CDN > CDN resources.
  2. Click the CNAME of the resource to open its settings.
CDN resources list with CNAME links
  1. On the OPTIONS tab, scroll to HTTP methods and click the Enable HTTP methods toggle.
  2. In the Choose HTTP methods field, add the methods the CDN should accept. Remove any method tag to block that method.
HTTP methods section with Enable HTTP methods toggle on and selected methods shown
  1. Click Save changes.
For most static content delivery, GET and HEAD are sufficient. Allow POST as well if the resource serves dynamic requests, form submissions, or API calls. When a client sends a method that isn’t allowed, the CDN returns 405 Method Not Allowed without forwarding the request to the origin.