Missing CSRF token when embedding dashboard using iframe in development mode
See original GitHub issueExpected results
I am trying out superset for the first time. I am currently running it in development mode from my local machine and want to embed the dashboards I created in an html using iframes
<iframe src="http://172.20.33.111:8088/superset/dashboard/7/?standalone=true" height="600" width="1200">
The embed asks for login credentials and then throws a CSRF token is missing
error.
Screenshots
Same as [#8382]
How to reproduce the bug
Launch Apache Superset using superset run -h 0.0.0.0 -p 8088
Connect the link via iframe into another separate webpage See error
Environment
- superset package version:
0.35.1
- python version:
3.6.7
- node.js version:
v8.10.0
- npm version:
3.5.2
Checklist
Make sure these boxes are checked 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
As per [#8382], I have updated the SESSION_COOKIE_SAMESITE
value to None, but it didn’t work for me.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
[GitHub] [incubator-superset] azure31 opened a new issue ...
azure31 opened a new issue #8830: Missing CSRF token when embedding dashboard using iframe in development mode URL: ...
Read more >cant a CSRF token be stolen using iframe?
the client retrieves from the server a CSRF token. the token is stored in an input element inside the form like this:
Read more >embed superset dashboard in iframe - You.com | The AI ...
The embed asks for login credentials and then throws a CSRF token is missing error. Screenshots. Same as [#8382]. How to reproduce the...
Read more >Getting error for showing the charts under iframe from ...
In my testing server embedding worked when I put this line in my loaded "superset_config.py" file. WTF_CSRF_ENABLED = False.
Read more >Enable URL allow list for cross-origin iframe communication ...
(Medium) If you do not inclusion list intended domains, the ability to embed other pages within Now Platform instances may be limited. Security ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Issue-Label Bot is automatically applying the label
#bug
to this issue, with a confidence of 0.74. Please mark this comment with 👍 or 👎 to give our bot feedback!Links: app homepage, dashboard and code for this bot.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue
.pinned
to prevent stale bot from closing the issue.