- 1 year ago
Grafana on IIS: Origin Not Allowed
If you encounter the "Origin Not Allowed" error when using Grafana with IIS, it typically means that the Grafana server is rejecting requests from the specified origin. To resolve this issue, you can try the following steps:
Edit the Grafana configuration file (
grafana.ini
). The file is typically located in theconf
directory of your Grafana installation.Look for the
[server]
section in thegrafana.ini
file.Uncomment or add the
allowed_origin
configuration option and specify the origin(s) from which requests are allowed. For example:csharp[server]
allowed_origin = http://example.com
Replace
http://example.com
with the actual origin you want to allow. You can also specify multiple origins separated by commas.Save the
grafana.ini
file.Restart the Grafana service to apply the changes.
After making these changes, Grafana should allow requests from the specified origin(s) and the "Origin Not Allowed" error should be resolved. If you still encounter the issue, double-check that you have specified the correct origin(s) and that there are no other configuration settings or network restrictions causing the problem.