Grafana 9 origin not allowed

Hello
I just made an update from grafana 8 to grafana 9 on two servers (staging ,production)
On staging machine access is via ip and not domain ,http protocol , everything working correct.

On production i don’t have nginx or apache ,using azure application gateway .
In app gateway i do have redirect from http to https.
before the upgrade everything worked fine with same app-gateway config .
Now i have origin not allowed errors when trying to add any elasticsearch connector , and have the same error even when entering into my main page .

i saw solutions for apache and nginx with proxy_set_header Host $http_host; but i dont have this option on app-gateway

Issue solved :
The solution was to specify the domain name on “Override with specific domain name” option on application gateway backend pool settings .