How to configure CORS in rancher 2.x

i have a monitoring tool to monitor several k8s clusters hosted by rancher2.x. it uses Origin Header. it’s forbidden by rancher. how to configure it?

Add an annotation to the load balancer, like this: