耳边轻语999:

location /jf {

add_header 'Access-Control-Allow-Origin' 'https://192.168.100.104:9909' ;

add_header 'Access-Control-Allow-Credentials' 'true';

add_header 'Access-Control-Allow-Methods' 'GET, POST, PATCH, DELETE, PUT, OPTIONS';

add_header 'Access-Control-Allow-Headers' 'uuid,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type, X-Custom-Header, Access-Control-Expose-Headers, Token, Authorization';

if ($request_method = 'OPTIONS') {

return 204;

}

proxy_pass http://192.168.100.104:9901;

}