{"isTrusted": true} exception in core.umd.js

I am using Angular 2 and everything works fine in Chrome, but I started getting the following error in Firefox:

EXCEPTION: 0 - {"isTrusted": true} in core.umd.js

I have no idea what causes this or where it comes from, so I don’t even know where to start debugging it. I did a few google but didn't find anything useful. Here is an image of what I see on the console:

enter image description here

Does anyone know what that means?

+5
source share
1 answer

I remember that I also had this question, and I believe that I tracked it to the next.

{"isTrusted":true} was the request body, which was printed by my ErrorHandler, which detected failed requests. The reason for the failed request was the CORS problem. I had a wildcard substitution pattern in my Tomcat web.xml for testing purposes:

 <init-param> <param-name>cors.allowed.origins</param-name> <param-value>*</param-value> </init-param> 

It turned out that Firefox, at least in that particular version that I used, did not like wildcards and thus led to an unsuccessful request, although the prefix succeeded. After the original name was assigned to a qualified name, everything worked fine. And like you, I never had these problems in Chrome.

See this question too

Hope that helps track your problem.

+3
source

Source: https://habr.com/ru/post/1263642/


All Articles