Our web application is currently embedded within an iframe on a portal, and we are in the process of changing the domain for this portal. While testing with the new domain, we have encountered some issues where the portal loads successfully in Firefox but fails to load in Chrome.
Upon checking the console, we see that there is a CORS-related failed API call in both browsers. However, Firefox displays a log message saying
TypeError: NetworkError when attempting to fetch resource,
whereas Chrome shows TypeError: Failed to fetch.
I am curious if this particular CORS Failed to fetch
error might be causing the application inside the iframe to break specifically in Chrome but not in Firefox. I would like to understand why this discrepancy exists.