Skip to content

Commit

Permalink
api.conf: 修改拒绝时的错误码,使其更有意义
Browse files Browse the repository at this point in the history
  • Loading branch information
t123yh authored May 18, 2019
1 parent ebdb1b1 commit d83313c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api.conf
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -67,4 +67,4 @@ location = /traff {
'access-control-allow-origin: *'
'cache-control: no-cache'
;
}
}

0 comments on commit d83313c

Please sign in to comment.