Fix for Perfetto's Failed to Fetch Error

How to fix the "Could not load local trace TypeError Failed to fetch" error in Perfetto UI