Skip to content

Commit

Permalink
Tell OH3 to use an alternative authentication header (openhab#311)
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Cunningham <[email protected]>
  • Loading branch information
digitaldan authored Sep 11, 2020
1 parent d5bc321 commit a707d14
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,9 @@ Routes.prototype.proxyRouteOpenhab = function (req, res) {
res.end('openHAB is offline');
return;
}

//tell OH3 to use alternative Authentication header
res.cookie('X-OPENHAB-AUTH-HEADER', 'true')

var requestId = this.requestTracker.acquireRequestId();
// make a local copy of request headers to modify
Expand Down

0 comments on commit a707d14

Please sign in to comment.