diff --git a/package.json b/package.json index 2ff931f..b080fda 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ ] }, "dependencies": { - "@openziti/ziti-browzer-core": "^0.51.1", + "@openziti/ziti-browzer-core": "^0.51.2", "async-mutex": "^0.5.0", "cheerio": "^1.0.0-rc.12", "jwt-decode": "^3.1.2", diff --git a/src/ZitiFirstStrategy.ts b/src/ZitiFirstStrategy.ts index 9896d6d..1280487 100644 --- a/src/ZitiFirstStrategy.ts +++ b/src/ZitiFirstStrategy.ts @@ -512,7 +512,8 @@ class ZitiFirstStrategy extends CacheFirst /* NetworkFirst */ { self._initialized = true; - self.logger.trace(`_initialize: complete`); + self.logger.trace(`_initialize: ZitiContext '${self._uuid}' initialize complete`); + } return resolve(null); @@ -1391,7 +1392,7 @@ class ZitiFirstStrategy extends CacheFirst /* NetworkFirst */ { try { - this.logger.debug(`doing Ziti fetch for: `, request.url); + this.logger.debug(`doing Ziti fetch for: ${request.url}`); /** * Instantiate a fresh HTTP Request object that we will push through the ziti-browzer-core which will: @@ -1413,7 +1414,9 @@ class ZitiFirstStrategy extends CacheFirst /* NetworkFirst */ { newHeaders.append( 'referer', request.referrer ); } - newHeaders.append( 'Remote-User', await this._zitiContext.getAccessTokenEmail() ); + try { + newHeaders.append( 'Remote-User', await this._zitiContext.getAccessTokenEmail() ); + } catch (e) {} // Propagate any Cookie values we have accumulated let cookieHeaderValue = ''; diff --git a/yarn.lock b/yarn.lock index b75e9b2..b1dd7cd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -974,10 +974,10 @@ "@types/emscripten" "^1.39.6" "@wasmer/wasi" "^1.0.2" -"@openziti/ziti-browzer-core@^0.51.1": - version "0.51.1" - resolved "https://registry.yarnpkg.com/@openziti/ziti-browzer-core/-/ziti-browzer-core-0.51.1.tgz#e48ecb306bc508510542ee93c0750db9ad6d402d" - integrity sha512-jf4W+2OKc9NAnqB/iuK+Oh4mZihbWXxLosCc4wK1Ns4CkeLdNK1AjCbk2qx+NpCcmVwZDJk9R+jeJGn70ux9EQ== +"@openziti/ziti-browzer-core@^0.51.2": + version "0.51.2" + resolved "https://registry.yarnpkg.com/@openziti/ziti-browzer-core/-/ziti-browzer-core-0.51.2.tgz#cdff48c4700636c4e85ceb6794ad93318cbf28da" + integrity sha512-pKApSloMsvOIaN09NjLJp7pTciRT8Tn1crBNkF5S09Hx+jLj7StirXB67K7SS7xtgLDy22cCqiOTqoHJvyEYgA== dependencies: "@openziti/libcrypto-js" "^0.24.0" "@openziti/ziti-browzer-edge-client" "^0.7.0"