nginx,server或location段添加:
add_header Access-Control-Allow-Origin '*'; add_header Access-Control-Allow-Credentials "true"; add_header Access-Control-Allow-Methods '*'; add_header Access-Control-Allow-Headers '*'; if ($request_method = 'OPTIONS') { return 200; }
标签:Control,跨域,header,配置,Access,nginx,add,Allow From: https://www.cnblogs.com/dwj192/p/17126260.html