Working with a few urls

Hello everyone!
Currently, I am developing a plugin for “Apache Solr” and I want to make it so that the datasource can refer to different urls. As far as I understand, datasource influx db can do that. As I understood, in this approach, urls are taken cyclically. I also took the _influxRequest function for my doGet function. But I constantly get the following error:

Access to XMLHttpRequest at ‘http://localhost:8985/solr/admin/collections?action=LISTALIASES&wt=json’ from origin ‘http://grafana.staged-by-discourse.com’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource
.

How do resolve this? Do you have any solutions?
Regards, Kirill