You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/08/12 03:03:17 UTC

[GitHub] [apisix-dashboard] yigeqiji opened a new issue, #2586: Why is there still this problem,grafana cannot be displayed

yigeqiji opened a new issue, #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586

   ### Issue description
   
   Why is there still this problem,grafana cannot be displayed
   
   ### Expected behavior
   
   normal
   
   ### How to Reproduce
   
   ![image](https://user-images.githubusercontent.com/59365443/184277115-feab8843-a4a8-41f4-bab2-44b4ffa90c08.png)
   
   
   ### Screenshots
   
   ![image](https://user-images.githubusercontent.com/59365443/184277023-f3941fec-bde7-4b0e-96b9-0f911fca1c0e.png)
   
   
   ### 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_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] trungtien commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
trungtien commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1245024353

   > 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 *;" 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] xiaolei000129 commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
xiaolei000129 commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1245420572

   > ![image](https://user-images.githubusercontent.com/16741935/189865069-8208539f-8613-488f-ae40-9d30d95c8613.png) yep,
   
   是用你上面的配置吗?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] trungtien commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
trungtien commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1236262692

   > You can configure `frame-src *` to allow all frame
   
   it's now working bro :) still the same issues
   
   content_security_policy: "default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; st
   yle-src 'self' 'unsafe-inline'; frame-src *"
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] freemankevin commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
freemankevin commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1365687075

   
   ```shell
   [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](https://user-images.githubusercontent.com/71524776/209631611-b4f00b21-25b3-4025-83fd-c27f3e92a400.png)
   ![image](https://user-images.githubusercontent.com/71524776/209631712-ca82029e-0b92-4a9b-8c8d-deb4bfd87bb6.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] trungtien commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
trungtien commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1245023134

     security:
       access_control_allow_credentials: true 
       access_control_allow_headers: "Authorization"
       access_control-allow_methods: "*"
       x_frame_options: "allow-from *"
       content_security_policy: "frame-src *;" 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] pixeldin commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
pixeldin commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1213644268

   Hi, @yigeqiji, this maybe help, update the `allow_embedding` config item as `true` in your Grafana configuration file and restart Grafana server.
   ```
   # security
   # set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
   allow_embedding = true
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] LiberiFatali commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
LiberiFatali commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1292950970

   solved after following steps here


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] guoqqqi commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
guoqqqi commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1218975159

   You can configure `frame-src *` to allow all frame


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] zoulux commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by "zoulux (via GitHub)" <gi...@apache.org>.
zoulux commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1473665964

   good 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] trungtien commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
trungtien commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1245606224

   > > ![image](https://user-images.githubusercontent.com/16741935/189865069-8208539f-8613-488f-ae40-9d30d95c8613.png) yep,
   > 
   > 是用你上面的配置吗?
   
   ![image](https://user-images.githubusercontent.com/16741935/189947761-40b95362-7745-4ccc-9fc7-3732e89ad3c1.png)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] trungtien commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
trungtien commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1245140619

   ![image](https://user-images.githubusercontent.com/16741935/189865069-8208539f-8613-488f-ae40-9d30d95c8613.png)
   yep,


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] guoqqqi commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
guoqqqi commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1218924226

   hello @yigeqiji The cause is due to the CSP (content-security-policy) and I think we can run the embed to fix it


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] SkyeYoung closed issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
SkyeYoung closed issue #2586: Why is there still this problem,grafana cannot be displayed
URL: https://github.com/apache/apisix-dashboard/issues/2586


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] xiaolei000129 commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
xiaolei000129 commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1245048758

   > > 你解决问题了吗?
   > > 它对我有用,在 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-源 *;"
   Have you solved the prolem?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] xiaolei000129 commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
xiaolei000129 commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1244947772

   Have you solved the prolem?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] sangnguyen7 commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
sangnguyen7 commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1218423428

   I also getting the same issue, even though set
   ```
   # security
   # ...
   # set to true if you want to allow browsers to render Grafana in a <frame>, <iframe>, <embed> or <object>. default is false.
   allow_embedding = true
   ```
   
   <img width="1060" alt="image" src="https://user-images.githubusercontent.com/4648887/185229001-f5bdb75a-25e2-458d-9cdd-c823a16f6d50.png">
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] yigeqiji commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
yigeqiji commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1212689274

   I tried to change this configuration, but it has no effect
   
   x_frame_options: "sameorigin"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-dashboard] lucamaf commented on issue #2586: Why is there still this problem,grafana cannot be displayed

Posted by GitBox <gi...@apache.org>.
lucamaf commented on issue #2586:
URL: https://github.com/apache/apisix-dashboard/issues/2586#issuecomment-1285253003

   not documented, facing the same bug


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org