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 2020/12/21 06:33:50 UTC

[GitHub] [incubator-superset] skini-galaxia opened a new issue #12150: CSRF Token Issue when embedding Superset in iFrame

skini-galaxia opened a new issue #12150:
URL: https://github.com/apache/incubator-superset/issues/12150


   On embedding Superset in an HTML iframe, a 'Bad Request' is displayed.
   
   The fixes mentioned in https://github.com/apache/incubator-superset/issues/8382 do not seem to fix this completely.
   
   On completing the following steps, the issue was resolved:
   - Create a new hostname using sudo nano /etc/hosts (eg foo.bar.com) with the IP address of the machine (use ifconfig).
   - Run the command python -m http.server 8000 in the directory containing the file with the embedded iframe.
   - Change `SESSION_COOKIE_SAMESITE = None ` in superset/config.py.
   
   Requesting the following steps to be added in the documentation for some clarity or a fix/workaround for this 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.

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