[SOLVED] Panel is empty (black) after upgrading

Hello! After upgrading grafana with yum form 5.0.4-1 to 5.1.2-1 my panels on all dashboards became black (in Firefox and Chrome, but not in IE [under Windows 7]).
I’m using nginx as reverse proxy. Here nginx.conf:

server {
    listen               *:443;
    server_name          d2.domain.loc;
    location /monitoring/ {

and grafana.ini

#protocol = https
;http_addr =
;http_port = 3000
domain = d2.domain.loc
;enforce_domain = false
root_url = https://d2.domain.loc/monitoring/
;router_logging = false
;static_root_path = public
;enable_gzip = false
;cert_file =
;cert_key =
;socket =

Has anyone encountered such a problem?

Solved with fixing nginx directive ‘add_header’.
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; font-src 'self' data:";
Opera Developer Tools helped a lot.

1 Like