I have installed mailman3 on Ubuntu 24. The web pages seem to be working except when I try to log on as a user or superuser. When I enter the credentials I get the error page:
CSRF verification failed. Request aborted.
Mailman3 support is stumped as to why this is happening and suggested I try here. I am totally unfamiliar with Django so to start I need some advice as to what data to collect and how. The page says to use “DEBUG=True” but it is not obvious where to put that. I tried putting it in gunicorn.conf but that does not produce anything in the debug.log file. Can someone help me get started debugging this problem? TIA
OK. adding CSRF_TRUSTED_ORIGINS worked for one particular host but that seems impractical. I can't add every possible domain that might access the page. Is there some way to use a wild card so any host can access the page? As far as mailman is concerned there is no security risk since this is happening on a login page.
I don’t think I understand. When I list the host from which I am doing the post, it works. If I just list my local host, it does not. I’m supposed to list the trusted domains using “http://host.example.com”. The confusing part is listing hosts rather than just domains. In any case the documentation is not clear what I’m supposed to use.