You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After recent updates (v2.4.2->2.4.6) everything worked fine, but recently i found a problem when I interacted with admin panel (regular annotation and cvat features worked fine).
I was getting CSRF verification failed. Request aborted
Steps to Reproduce (for bugs)
Set hostname: export CVAT_HOST=cvat.example.local
Deploy CVAT with docker and HTTPS export CVAT_HOST=annotations.wbe.local docker-compose -f ./docker-compose.yml -f ./docker-compose.https.yml up
Open admin panel
Create new user
Instance deployed on my local machine (no CVAT_HOST) worked fine.
Expected Behaviour
Be able to mark user as active/create user etc.
Current Behaviour
Get error.
Possible Solution
This bug was fixable by adding line CSRF_TRUSTED_ORIGINS = ["https://cvat.example.local"] into file: cvat/settings/base.py
I will soon prepare PR with solution.
Context
Your Environment
Git hash commit (git log -1): tag v2.4.6
Docker version docker version (e.g. Docker 17.0.05):
Are you using Docker Swarm or Kubernetes? No
Operating System and version (e.g. Linux, Windows, MacOS): Linux
Code example or link to GitHub repo or gist to reproduce problem:
Other diagnostic information / logs:
Container logs:
cvat_server | 2023-06-15 09:17:59,840 DEBG 'uvicorn-1' stderr output:
cvat_server | [2023-06-15 09:17:59,840] WARNING django.security.csrf: Forbidden (Origin checking failed - https://cvat.example.local does not match any trusted origins.): /admin/auth/user/36/change/
cvat_server |
cvat_server | 2023-06-15 09:17:59,840 DEBG 'uvicorn-1' stderr output:
cvat_server | WARNING:django.security.csrf:Forbidden (Origin checking failed - https://cvat.example.local does not match any trusted origins.): /admin/auth/user/36/change/
The text was updated successfully, but these errors were encountered:
@Zanz2 Fix is already submitted in #6322, but it is waiting for approval.
You can just apply my commit and try rebuild your CVAT to check whether does it fix everything for you.
My actions before raising this issue
After recent updates (v2.4.2->2.4.6) everything worked fine, but recently i found a problem when I interacted with admin panel (regular annotation and cvat features worked fine).
I was getting
CSRF verification failed. Request aborted
Steps to Reproduce (for bugs)
export CVAT_HOST=cvat.example.local
export CVAT_HOST=annotations.wbe.local docker-compose -f ./docker-compose.yml -f ./docker-compose.https.yml up
Instance deployed on my local machine (no
CVAT_HOST
) worked fine.Expected Behaviour
Be able to mark user as active/create user etc.
Current Behaviour
Get error.
Possible Solution
This bug was fixable by adding line
CSRF_TRUSTED_ORIGINS = ["https://cvat.example.local"]
into file:cvat/settings/base.py
I will soon prepare PR with solution.
Context
Your Environment
git log -1
): tagv2.4.6
docker version
(e.g. Docker 17.0.05):Container logs:
The text was updated successfully, but these errors were encountered: