From d83313c64e23df6299925c56a4dec0812309a80a Mon Sep 17 00:00:00 2001 From: Tian Yunhao Date: Sat, 18 May 2019 15:00:43 +0800 Subject: [PATCH] =?UTF-8?q?api.conf:=20=E4=BF=AE=E6=94=B9=E6=8B=92?= =?UTF-8?q?=E7=BB=9D=E6=97=B6=E7=9A=84=E9=94=99=E8=AF=AF=E7=A0=81=EF=BC=8C?= =?UTF-8?q?=E4=BD=BF=E5=85=B6=E6=9B=B4=E6=9C=89=E6=84=8F=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api.conf b/api.conf index 49206c2..ec3cda0 100644 --- a/api.conf +++ b/api.conf @@ -1,8 +1,8 @@ if ($_origin_id = '') { - return 404 'ERROR: origin `$http_origin` is not allowed'; + return 403 'ERROR: origin `$http_origin` is not allowed'; } if ($http_x_jsproxy) { - return 404 'ERROR: circular dependency'; + return 500 'ERROR: circular dependency'; } proxy_set_header x-jsproxy 1; proxy_set_header Connection $http_connection; @@ -67,4 +67,4 @@ location = /traff { 'access-control-allow-origin: *' 'cache-control: no-cache' ; -} \ No newline at end of file +}