Fixes issue with CSRF protection