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
Describe the bug
Ontask11.1
as title. we could not update user settings in admin panel. found out the log in django.log
WARNING [/var/www/html/ontask/venv/lib/python3.9/site-packages/django/utils/log.py:241] Forbidden (Origin checking failed - https://ontask.test.xxx.xxx.xxx does not match any trusted origins.): /otaontask/user/2
/change/
To Reproduce
Steps to reproduce the behavior:
Go to 'admin'
Click on 'users'
edit any user settings and save.
See error
**Solution **
add CSRF_TRUSTED_ORIGINS with our host in the settings/base.py
CSRF_TRUSTED_ORIGINS = ['https://ontask.xxx.xxx.xxx']
Not sure why we did not required it in the past, maybe webroute environment changed etc.
The text was updated successfully, but these errors were encountered:
Describe the bug
Ontask11.1
as title. we could not update user settings in admin panel. found out the log in django.log
WARNING [/var/www/html/ontask/venv/lib/python3.9/site-packages/django/utils/log.py:241] Forbidden (Origin checking failed - https://ontask.test.xxx.xxx.xxx does not match any trusted origins.): /otaontask/user/2
/change/
To Reproduce
Steps to reproduce the behavior:
**Solution **
add CSRF_TRUSTED_ORIGINS with our host in the settings/base.py
CSRF_TRUSTED_ORIGINS = ['https://ontask.xxx.xxx.xxx']
Not sure why we did not required it in the past, maybe webroute environment changed etc.
The text was updated successfully, but these errors were encountered: