I have my own web applications and need to implement reporting in it. So I want to know how can we embed the graph generated by apache superset in my web application/project ?
Asked
Active
Viewed 5,308 times
4
-
This may be a duplicate of [Apache superset dashboard in webpage](https://stackoverflow.com/questions/54219101/apache-superset-dashboard-in-webpage) – Alexander Nied Jul 18 '22 at 19:21
1 Answers
1
Quick Answer:
You can insert it with an HTML IFrame tag. For example if the Url of your dashborad is
Add simply the following suffix "?standalone=true" and add it in your HTML code like:
<html>
<head>
<title>Testing Charts</title>
</head>
<body>
<h1>Testing IFrame</h1>
<iframe
width=100%
height=100%
frameBorder="0"
src="http://52.59.247.208:8088/superset/dashboard/1/?standalone=true"
>
</iframe>
</body>
But first you have to edit your superset_config.py file by adding following line, if you want to use it without any problems:
SESSION_COOKIE_SAMESITE="None"

Luka Klarić
- 323
- 2
- 16
-
1I added the `SESSION_COOKIE_SAMESITE="None"` but it still redirect me to the login form! – MiraTech Oct 27 '21 at 15:10