Link Search Menu Expand Document
Table of contents

Allow request methods

  add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, OPTIONS' always;
              if ($request_method !~ ^(GET|POST|PUT|OPTIONS)$) {
                return 405;
                }