diff --git a/src/lang/std/engineConnection.ts b/src/lang/std/engineConnection.ts index 8bc30e0fc..dd0c5d9dc 100644 --- a/src/lang/std/engineConnection.ts +++ b/src/lang/std/engineConnection.ts @@ -560,7 +560,10 @@ class EngineConnection { // Otherwise when run in a browser, the token is sent implicitly via // the Cookie header. if (this.token) { - this.send({ headers: { Authorization: `Bearer ${this.token}` } }) + this.send({ + type: 'headers', + headers: { Authorization: `Bearer ${this.token}` }, + }) } })