mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	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:
		@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user