英文:
CSRF session token missing in Apache Superset EC2 instance
问题
I'm getting "The CSRF session token is missing." when trying to open login in the dashboard page of apache superset. (I'm running the superset docker image on an x86 Amazon EC2 instance)
I tried setting WTF_CSRF_ENABLED = False
in the config.py file but got the same error.
I even added the "custom_security_manager.login" to the WTF_CSRF_EXEMPT_LIST in the config file, but no luck.
Note: When running the docker image on local, I am not having any problems.
英文:
I'm getting "The CSRF session token is missing." when trying to open login in the dashboard page of apache superset. (I'm running the superset docker image on a x86 Amazon EC2 instance)
I tried setting WTF_CSRF_ENABLED = False
in the config.py file but got the same error.
I even added the "custom_security_manager.login" to the WTF_CSRF_EXEMPT_LIST in the config file, but no luck.
Note: When running the docker image on local, I am not having any problems.
答案1
得分: 1
我使用了最新的 superset Docker 镜像。遇到了相同的问题。结果发现这是最新镜像的问题。从 这里 得知。
<br>解决方案是在 docker-compose-non-dev.yml
文件中添加下面一行,并使用 docker-compose 命令运行,以使用上一个稳定的 Docker 镜像。 <br> x-superset-image: &superset-image apache/superset:2.1.0
我也在想如何在使用 Docker 镜像时覆盖配置。可以通过将 ./docker/pythonpath_dev/superset_config_local.example
复制到 ./docker/pythonpath_dev/superset_config_docker.py
(被 Git 忽略)并填写你的覆盖来实现。 来源
英文:
I was using the latest superset docker image. Was facing the same problem. Turns out that this is a problem with the latest image. Got to know from here.
<br>The solution is to use the last stable docker image by adding the line below to the docker-compose-non-dev.yml
file and running it using docker-compose command. <br> x-superset-image: &superset-image apache/superset:2.1.0
I was also wondering how to override the configurations when using a docker image. It can be done by making a copy of ./docker/pythonpath_dev/superset_config_local.example
into ./docker/pythonpath_dev/superset_config_docker.py
(git ignored) and fill in your overrides. source
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论