Follow JSON redirects for safe_mode enabled servers