You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2021/08/23 20:03:14 UTC

[GitHub] [superset] gustavoaalves opened a new issue #16409: Cannot user a dashboard inside a iframe

gustavoaalves opened a new issue #16409:
URL: https://github.com/apache/superset/issues/16409


   A clear and concise description of what the bug is.
   
   I had this issue when i tried use my dashboard inside an iframe. Look at the screenshot below:
   
   ![image](https://user-images.githubusercontent.com/11478696/130511345-b0b1a791-9e31-4991-ba29-165aa0b83668.png)
   
   Code from my HTML:
   
   `<!DOCTYPE html>
   <html lang="en">
   	<head>
   		
   	</head>
   	<body>
   		<iframe height="1500" width="1500" frameBorder="0" scrolling="no" src="http://192.168.0.109:8088/r/12?standalone=true" title="description" style="overflow:hidden" ></iframe>
   	</body>
   </html>`
   
   
   ### Expected results
   
   Open my dashboard without errors in some iframe.
   
   ### Actual results
   
   This error in two of three widgets from my dashboard:
   
   ![image](https://user-images.githubusercontent.com/11478696/130511571-8e47089d-535d-4790-ac63-da5df93f48fa.png)
   
   Unexpected token < in JSON at position 0
   
   #### Screenshots
   
   Above!
   
   #### How to reproduce the bug
   
   1. Embed a Dashboard inside a Iframe
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: latest
   - python version: Docker container (https://hub.docker.com/r/apache/superset)
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [ ] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [ ] I have reproduced the issue with at least the latest released version of superset.
   - [ ] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   ### Additional context
   
   Add any other context about the problem 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@superset.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] arkitpatel commented on issue #16409: Cannot user a dashboard inside a iframe

Posted by GitBox <gi...@apache.org>.
arkitpatel commented on issue #16409:
URL: https://github.com/apache/superset/issues/16409#issuecomment-909814806


   I had a similar issue and it was due to permissions for the user used to display the dashboard. I am using the following permissions though some are specific to the use case we need but maybe you can give it a try. Another issue could be that permission is not synced correctly so maybe you can try the DB upgrade and then init command.
   
   ![image](https://user-images.githubusercontent.com/20540199/131601048-2430c1fc-47e6-4073-afa0-c2e640edb1dd.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@superset.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] amitmiran137 closed issue #16409: Cannot user a dashboard inside a iframe

Posted by GitBox <gi...@apache.org>.
amitmiran137 closed issue #16409:
URL: https://github.com/apache/superset/issues/16409


   


-- 
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@superset.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] arkitpatel commented on issue #16409: Cannot user a dashboard inside a iframe

Posted by GitBox <gi...@apache.org>.
arkitpatel commented on issue #16409:
URL: https://github.com/apache/superset/issues/16409#issuecomment-909814806


   I had a similar issue and it was due to permissions for the user used to display the dashboard. I am using the following permissions though some are specific to the use case we need but maybe you can give it a try. Another issue could be that permission is not synced correctly so maybe you can try the DB upgrade and then init command.
   
   ![image](https://user-images.githubusercontent.com/20540199/131601048-2430c1fc-47e6-4073-afa0-c2e640edb1dd.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@superset.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] amitmiran137 commented on issue #16409: Cannot user a dashboard inside a iframe

Posted by GitBox <gi...@apache.org>.
amitmiran137 commented on issue #16409:
URL: https://github.com/apache/superset/issues/16409#issuecomment-1003653813


   We're you able to resolve the issue?


-- 
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@superset.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org