Access data source from an app type plugin page

To not get cors errors, you should use server mode to go through the Grafana proxy. That is set on the config page for your mysql data source. Then you make calls to it like this (the url variable is taken from the config page - instanceSettings.url):

this.backendSrv.datasourceRequest({
  url: url,
  method: 'GET',
})