Enable CORS and set allowed origin via env in k8s manifest

  • What Grafana version and what operating system are you using?
    NA

  • What are you trying to achieve?
    I need to enable CORS and set allowed origin on datasource proxy API via k8s manifest envs.

  • How are you trying to achieve it?
    grafana:
    baseImage: /grafana/grafana
    envs:
    allowed_origins: .*
    enable_cors: true

  • What happened?
    Cors is not getting enabled

  • What did you expect to happen?
    Cors gets enabled and allows requests from allowed origin

  • Can you copy/paste the configuration(s) that you are having problems with?
    grafana:
    baseImage: /grafana/grafana
    envs:
    allowed_origins: .*
    enable_cors: true

  • Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.

  • Did you follow any online instructions? If so, what is the URL?