upgraded to 1.17 on rockylinux CSRF https issue

44 views
Skip to first unread message

ben Sheaff

unread,
Mar 24, 2025, 6:20:17 PMMar 24
to archivematica
upgraded to 1.17 on rockylinux

This only happens when using https. If I switch to http it works.

This works, I can log in
http://example.library.ca:81/

but this does not work:
This page loads:
https://example.library.ca:81/
but after login it does not work. It redirects to:
https://example.library.ca:81/administration/accounts/login/

Forbidden (403)

CSRF verification failed. Request aborted.

ben Sheaff

unread,
Mar 25, 2025, 12:52:12 PMMar 25
to archivematica
I fixed this.
add this line:
CSRF_TRUSTED_ORIGINS=['https://example.library.ca:81','https:// example.library.ca:8001']
to the bottom of these files:
/usr/share/archivematica/dashboard/settings/production.py
/usr/lib/archivematica/storage-service/storage_service/settings/production.py
then restart dashboard and storage service.

Donald Mennerich

unread,
Oct 1, 2025, 12:15:41 PM (8 days ago) Oct 1
to archivematica
Thank you, this helped immensely after switching out rhel9/am1.17 hosts over to https

Don

Reply all
Reply to author
Forward
0 new messages