From ec7f937902c833c1a5491e5cdec5162ff5af186c Mon Sep 17 00:00:00 2001 From: Anthony Blackshaw Date: Sun, 22 Jul 2018 19:23:07 +0100 Subject: [PATCH] Fetch request will now include cookies --- module/typeahead.js | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/module/typeahead.js b/module/typeahead.js index 6da71f7..945e85e 100644 --- a/module/typeahead.js +++ b/module/typeahead.js @@ -731,7 +731,10 @@ Typeahead.behaviours = { url = `${url}&q=${qs}` } - return fetch(url) + return fetch( + url, + {'credentials': 'include'} + ) .then((response) => { return response.json() }) diff --git a/package.json b/package.json index c09232f..0e4dc6d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "manhattan-typeahead", - "version": "1.0.9", + "version": "1.0.10", "description": "Type-a-head and tokens for form fields.", "engines": { "node": ">=8.9.4"