From 40d24d68f59312d4fff74ae8fce3f4e75b13c392 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 5 Jan 2021 17:59:28 +0800 Subject: [PATCH] Update gunicorn.conf --- rewrite/nginx/gunicorn.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rewrite/nginx/gunicorn.conf b/rewrite/nginx/gunicorn.conf index e1d52636d..80709d083 100755 --- a/rewrite/nginx/gunicorn.conf +++ b/rewrite/nginx/gunicorn.conf @@ -1,3 +1,7 @@ + +add_header Access-Control-Allow-Origin *; +add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; + location / { proxy_pass http://127.0.0.1:8000; # 这里是指向 gunicorn host 的服务地址 proxy_set_header Host $host;