点大商城前端跨域问题处理

nginx配置文件: location / { if ($request_method = 'OPTIONS') { add_header Access-Control-Allow-Origin *; ...