nginx配置跨域
nginx配置跨域:location里面添加:if ($request_method = ‘OPTIONS’) {add_header Access-Control-Allow-Origin $http_origin;add_header Access-Control-Allow-Methods OPTIONS,HEAD,GET,POST,DELETE,PUT,PATCH;add_header Access-Control-Allow-Credentials true;add_header Ac


