adagios
adagios copied to clipboard
CSRF in Django override
I hit a problem with proxy-ing Adagios. I'm proxying to Adagios from a secondary location with another virtualhost name.
Django returned a 403 error and mismatch between URL and banned the request because of the CSRF middleware.
I workaround is to add the following to settings.py and restart Apache: ALLOWED_HOSTS = [ 'remote-virthost.example.com', ] USE_X_FORWARDED_HOST = True
Maybe this could be included in the configuration for adagios?