Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSRF verification failed. Request aborted. #10

Closed
xyh2132 opened this issue Mar 1, 2023 · 6 comments
Closed

CSRF verification failed. Request aborted. #10

xyh2132 opened this issue Mar 1, 2023 · 6 comments

Comments

@xyh2132
Copy link

xyh2132 commented Mar 1, 2023

Forbidden (403)
CSRF verification failed. Request aborted.

More information is available with DEBUG=True.
登录admin后台设置KEY时,提示如上,无法使用

@WongSaang
Copy link
Owner

WongSaang commented Mar 1, 2023

Did you deploy using the example Docker Compose configuration and access it on local port 9000?

If not, please add the environment variable APP_DOMAIN=host:port to the wsgi-server service, for example:
APP_DOMAIN=localhost:8888

@xyh2132
Copy link
Author

xyh2132 commented Mar 1, 2023

重新使用docker部署,端口也用了9000:80,但依然报错.这次是502

@xyh2132
Copy link
Author

xyh2132 commented Mar 1, 2023

如果没有,请将环境变量 APP_DOMAIN=host:port 添加到WSGI-SERVER服务--这个如何添加,是写在docker-compose.yaml里吗,写在什么地方可以

@WongSaang
Copy link
Owner

对的,写在 docker-compose.yaml
有截图的话给一张

@ErmuErmu
Copy link

ErmuErmu commented Mar 3, 2023

老哥,我这也遇到同样的问题。
image

编排文件是这样的
image

@ErmuErmu
Copy link

ErmuErmu commented Mar 3, 2023

wsgi-server 添加了 APP_DOMAIN=host:port 环境变量后,问题解决。
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants