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/28 05:08:29 UTC
[GitHub] [apisix-dashboard] vitcou commented on issue #2588: "Refused to load the image" , which build by deploy-with-docker.md
vitcou commented on issue #2588:
URL: https://github.com/apache/apisix-dashboard/issues/2588#issuecomment-1229377826
i found the reason, is the conf.yaml key "content_security_policy" set
relate to
https://github.com/apache/apisix-dashboard/issues/2546
https://github.com/apache/apisix-dashboard/pull/2548
```yaml
security:
# access_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: "deny"
content_security_policy: "default-src 'self'; script-src 'self' 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src * 'self' data: https:; frame-src xx.xx.xx.xx:3000" # You can set frame-src to provide content for your grafana panel.
```
using
```shell
img-src * 'self' data: https:;
```
work ok!
--
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