mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-08-16 11:54:55 +00:00
Merge pull request #824 from pUrGe12/patch-csrf
This commit is contained in:
commit
4121c04b54
4 changed files with 11 additions and 5 deletions
|
|
@ -29,7 +29,7 @@ class GetCsrfToken(ApiHandler):
|
|||
if not origin_check["ok"]:
|
||||
return {
|
||||
"ok": False,
|
||||
"error": f"Origin {self.get_origin_from_request(request)} not allowed when login is disabled. Set login and password or add your URL to ALLOWED_ORIGINS env variable. Currently allowed origins: {",".join(origin_check['allowed_origins'])}",
|
||||
"error": f"Origin {self.get_origin_from_request(request)} not allowed when login is disabled. Set login and password or add your URL to ALLOWED_ORIGINS env variable. Currently allowed origins: {','.join(origin_check['allowed_origins'])}",
|
||||
}
|
||||
|
||||
# generate a csrf token if it doesn't exist
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue