From 4c859dc0aa6085d93bc2888ae3b448cb1f76cd09 Mon Sep 17 00:00:00 2001 From: Michael Schurter <schmichael@hashicorp.com> Date: Mon, 8 Jan 2018 12:09:29 -0800 Subject: [PATCH] Include credentials in fetch requests Fixes #3701 Relevant spec section: https://fetch.spec.whatwg.org/#concept-request-credentials-mode --- CHANGELOG.md | 1 + ui/app/services/token.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e23e1d43de9..3a4bba81d15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ BUG FIXES: * core: Fix an issue in which batch jobs with queued placements and lost allocations could result in improper placement counts [[GH-3717](https://github.com/hashicorp/nomad/issues/3717)] * config: Revert minimum CPU limit back to 20 from 100. + * ui: Fix requests using client-side certificates in Firefox. [[GH-3728](https://github.com/hashicorp/nomad/pull/3728)] ## 0.7.1 (December 19, 2017) diff --git a/ui/app/services/token.js b/ui/app/services/token.js index be1da0c904a..d51d7510b6f 100644 --- a/ui/app/services/token.js +++ b/ui/app/services/token.js @@ -19,7 +19,7 @@ export default Service.extend({ }, }), - authorizedRequest(url, options = {}) { + authorizedRequest(url, options = { credentials: 'include' }) { const headers = {}; const token = this.get('secret');