donlinglok opened a new pull request, #357:
URL: https://github.com/apache/apisix-docker/pull/357

   Hi,
   I was trying to run the docker example with the below command:
   ```
   git clone https://github.com/apache/apisix-docker.git
   cd apisix-docker/example
   docker-compose -p docker-apisix up -d
   ```
   After I set the Grafana Address `http://localhost:3000/`, it displays error:
   ```
   Refused to frame 'http://localhost:3000/' because it violates the following 
Content Security Policy directive: "default-src 'self'". Note that 'frame-src' 
was not explicitly set, so 'default-src' is used as a fallback.
   ```
   
![image](https://user-images.githubusercontent.com/6138806/190605863-fd2b0957-9448-40ab-8d0b-bb94cd2b80b3.png)
   
   This can be fixed by adding config `frame-src *` in 
`example\dashboard_conf\conf.yaml`:
   ```
   content_security_policy: "default-src 'self'; script-src 'self' 
'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; frame-src *"  
# You can set frame-src to provide content for your grafana panel.
   ```
   
   After patch:
   
![image](https://user-images.githubusercontent.com/6138806/190606719-b68e3e75-cfc7-469c-bb6d-607d06b1d5d6.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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to