apisix-dashboard: Why is there still this problem,grafana cannot be displayed

Issue description

Why is there still this problem,grafana cannot be displayed

Expected behavior

normal

How to Reproduce

image

Screenshots

image

Environment

  • apisix version (cmd: apisix version):
  • OS (cmd: uname -a):
  • OpenResty / Nginx version (cmd: nginx -V or openresty -V):
  • etcd version, if have (cmd: run etcd --version):
  • apisix-dashboard version, if have:
  • Browser version, if have:

Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 2
  • Comments: 15 (2 by maintainers)

Most upvoted comments

[root@apisix example]# vim  ./dashboard_conf/conf.yaml
...
  #### csp for grafana ui
  max_cpu: 0             # supports tweaking with the number of OS threads are going to be used for parallelism. Default value: 0 [will use max number of available cpu cores considering hyperthreading (if any)]. If the value is negative, is will not touch the existing parallelism profile.
  security:
    #ccess_control_allow_origin: "http://httpbin.org"
    access_control_allow_credentials: true          # support using custom cors configration
    access_control_allow_headers: "Authorization"
    access_control-allow_methods: "*"
    x_frame_options: "allow-from *"
    content_security_policy: "frame-src *"  # You can set frame-src to provide content for your grafana panel.

[root@apisix example]# docker restart example-apisix-dashboard-1


problem solved.

image image

Have you solved the prolem? it’w work for me, add some lines in conf.yaml security: access_control_allow_credentials: true # support using custom cors configration access_control_allow_headers: “Authorization” access_control-allow_methods: “*” x_frame_options: “allow-from *” content_security_policy: “frame-src *;”