From 6781523f473be22b2cd5c202382007eb6222a371 Mon Sep 17 00:00:00 2001 From: "Andrey Mikhaylov (lolmaus)" Date: Wed, 23 Nov 2016 17:42:04 +0300 Subject: [PATCH] Cookie store `_secureCookies`: use correct protocol property in FastBoot mode --- addon/session-stores/cookie.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addon/session-stores/cookie.js b/addon/session-stores/cookie.js index 62f614afb..23d87aa81 100644 --- a/addon/session-stores/cookie.js +++ b/addon/session-stores/cookie.js @@ -108,10 +108,10 @@ export default BaseStore.extend({ _secureCookies: computed(function() { if (this.get('_fastboot.isFastBoot')) { - return this.get('_fastboot.request.host').indexOf('https:') === 0; - } else { - return window.location.protocol === 'https:'; + return this.get('_fastboot.request.protocol') === 'https'; } + + return window.location.protocol === 'https:'; }).volatile(), _syncDataTimeout: null,