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/11/18 15:44:21 UTC

[GitHub] [apisix-docker] donlinglok opened a new pull request, #357: Fix granafa dashboard iframe policy

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: notifications-unsubscribe@apisix.apache.org

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


[GitHub] [apisix-docker] donlinglok closed pull request #357: Fix granafa dashboard iframe policy

Posted by GitBox <gi...@apache.org>.
donlinglok closed pull request #357: Fix granafa dashboard iframe policy
URL: https://github.com/apache/apisix-docker/pull/357


-- 
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-docker] donlinglok commented on pull request #357: Fix granafa dashboard iframe policy

Posted by GitBox <gi...@apache.org>.
donlinglok commented on PR #357:
URL: https://github.com/apache/apisix-docker/pull/357#issuecomment-1365732565

   > @donlinglok Can you merge master's code and make CI pass?
   
   merged, thank you!


-- 
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-docker] soulbird commented on pull request #357: Fix granafa dashboard iframe policy

Posted by GitBox <gi...@apache.org>.
soulbird commented on PR #357:
URL: https://github.com/apache/apisix-docker/pull/357#issuecomment-1365710010

   @donlinglok Can you merge master's code and make CI  pass?


-- 
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-docker] donlinglok closed pull request #357: Fix granafa dashboard iframe policy

Posted by GitBox <gi...@apache.org>.
donlinglok closed pull request #357: Fix granafa dashboard iframe policy
URL: https://github.com/apache/apisix-docker/pull/357


-- 
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-docker] donlinglok commented on pull request #357: Fix granafa dashboard iframe policy

Posted by GitBox <gi...@apache.org>.
donlinglok commented on PR #357:
URL: https://github.com/apache/apisix-docker/pull/357#issuecomment-1250508748

   > #340
   @tao12345666333 
   Dear,
   I checked that PR, that solution needs a manual change to the config for the beginner. 
   ```
   frame-src xxx.xxx.xxx.xxx:3000 -> frame-src *
   ```
   My change can be run successfully with the same starter code after merging with the master branch.
   ```
   git clone https://github.com/apache/apisix-docker.git
   cd apisix-docker/example
   docker-compose -p docker-apisix up -d
   ```
   
   and without unnecessary configuration.


-- 
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-docker] donlinglok commented on pull request #357: Fix granafa dashboard iframe policy

Posted by GitBox <gi...@apache.org>.
donlinglok commented on PR #357:
URL: https://github.com/apache/apisix-docker/pull/357#issuecomment-1320199263

   > @donlinglok Sorry for delay.
   > 
   > Would you please reopen this one?
   > 
   > Your explanation above makes sense. Let's merge this one
   
   Thanks!


-- 
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-docker] tao12345666333 commented on pull request #357: Fix granafa dashboard iframe policy

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on PR #357:
URL: https://github.com/apache/apisix-docker/pull/357#issuecomment-1320150436

   @donlinglok Sorry for delay.
   
   Would you please reopen this one?
   
   Your explanation above makes sense. Let's merge this one 


-- 
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-docker] tao12345666333 commented on pull request #357: Fix granafa dashboard iframe policy

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on PR #357:
URL: https://github.com/apache/apisix-docker/pull/357#issuecomment-1328234960

   @bzp2010  PTAL, thanks


-- 
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-docker] juzhiyuan merged pull request #357: Fix granafa dashboard iframe policy

Posted by GitBox <gi...@apache.org>.
juzhiyuan merged PR #357:
URL: https://github.com/apache/apisix-docker/pull/357


-- 
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-docker] tao12345666333 commented on pull request #357: Fix granafa dashboard iframe policy

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on PR #357:
URL: https://github.com/apache/apisix-docker/pull/357#issuecomment-1249267602

   #340


-- 
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-docker] github-actions[bot] commented on pull request #357: Fix granafa dashboard iframe policy

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #357:
URL: https://github.com/apache/apisix-docker/pull/357#issuecomment-1319787839

   This pull request has been marked as stale due to 60 days of inactivity. It will be closed in 4 weeks if no further activity occurs. If you think that's incorrect or this pull request should instead be reviewed, please simply write any comment. Even if closed, you can still revive the PR at any time ordiscuss it on the dev@apisix.apache.org list. Thank you for your contributions.


-- 
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