This error is very general as it points to the line where the mendix framework is being loaded. Since the js is minimized to 1 line the error always occurs on line 6 and thus cannot be traced to the point where it goes wrong.
Did you change anything in the index.html? Or do you show any entities or trigger a microflow that requires security to be set correct?
Both of these issues have caused this problem for me in the past.