添加注解
nginx.ingress.kubernetes.io/configuration-snippet
add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Headers X-Requested-With,Content-Type,RRYB-Auth; add_header Access-Control-Allow-Methods POST,GET,PUT,PATCH,OPTIONS,DELETE; if ($request_method = 'OPTIONS') { return 200; }



