Force csrf_token generation in main view