adagios icon indicating copy to clipboard operation
adagios copied to clipboard

CSRF in Django override

Open eythori-sensa opened this issue 9 years ago • 0 comments

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?

eythori-sensa avatar May 11 '15 22:05 eythori-sensa