WongSaang / chatgpt-ui

A ChatGPT web client that supports multiple users, multiple languages, and multiple database connections for persistent data storage. Provides Docker images and quick deployment scripts.
https://wongsaang.github.io/chatgpt-ui/
MIT License
1.51k stars 333 forks source link

后台登录出现403 #117

Closed harochen75 closed 1 year ago

harochen75 commented 1 year ago

Forbidden (403) CSRF verification failed. Request aborted.

j704794464 commented 1 year ago

我也遇到了,这个是因为刚开始设置ip的时候设置了默认的localhost,这样的话只能在本地访问,通过IP访问的时候就会无法通过跨域访问的校验。搭建网站的时候输入你访问服务器使用的IP或者域名,就解决了。

WongSaang commented 1 year ago

If not yet resolved, please read these issues first: https://github.com/WongSaang/chatgpt-ui/issues?q=is%3Aissue+CSRF+