giovannicandido / angular-spa

Angular security, logger, components and other stuff that makes professional Single Pages Application awesome.
MIT License
6 stars 4 forks source link

VM2081:1 GET http://localhost:9080/auth/realms/master/protocol/openid-connect/login-status-iframe.html #4

Closed giovannicandido closed 7 years ago

giovannicandido commented 7 years ago

When keycloak is not online injecting AuthService cause the issue:

VM2081:1 GET http://localhost:9080/auth/realms/master/protocol/openid-connect/login-status-iframe.html

VM2081:1 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://localhost:9080') does not match the recipient window's origin ('null').l @ VM2081:1(anonymous function) @ VM2081:1setSuccess @ VM2081:1C.onload @ VM2081:1wrapFn @ zone.js:698ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154ZoneTask.invoke @ zone.js:335

This makes all aplication to stop working, as angular zone is not protected against exceptions.

The solution is make keycloak run outside the zone