nginx: Add missing HTTP request methods to header.

This will make life easier if trying to write a Zulip client inside a
browser using the API.
This commit is contained in:
cursiv
2017-07-06 17:16:45 -04:00
committed by Tim Abbott
parent 094c8fd812
commit 2b7938b8ed

View File

@@ -59,7 +59,7 @@ location / {
location /api/ {
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers Authorization;
add_header Access-Control-Allow-Methods 'GET, POST';
add_header Access-Control-Allow-Methods 'GET, POST, DELETE, PUT, PATCH, HEAD';
include uwsgi_params;
uwsgi_pass django;