From d08fad009b3327dd938740390749e1f92ccdbf64 Mon Sep 17 00:00:00 2001 From: Jan Michael Auer Date: Fri, 12 Jan 2018 22:39:02 +0100 Subject: [PATCH] fix: Do not include credentials by default --- docs/config.rst | 1 - src/raven.js | 1 - test/raven.test.js | 1 - 3 files changed, 3 deletions(-) diff --git a/docs/config.rst b/docs/config.rst index 107bcb19bce4..1d479f81770b 100644 --- a/docs/config.rst +++ b/docs/config.rst @@ -313,7 +313,6 @@ Those configuration options are documented below: { method: 'POST', - credentials: 'include', keepalive: true, referrerPolicy: 'origin' } diff --git a/src/raven.js b/src/raven.js index 4ca2d7e1b6f3..6f77c7549dc8 100644 --- a/src/raven.js +++ b/src/raven.js @@ -87,7 +87,6 @@ function Raven() { }; this._fetchDefaults = { method: 'POST', - credentials: 'include', keepalive: true, referrerPolicy: 'origin' }; diff --git a/test/raven.test.js b/test/raven.test.js index bf47e246c5cd..70d071a4b83f 100644 --- a/test/raven.test.js +++ b/test/raven.test.js @@ -1783,7 +1783,6 @@ describe('globals', function() { assert.deepEqual(window.fetch.lastCall.args, [ 'http://localhost/?a=1&b=2', { - credentials: 'include', keepalive: true, referrerPolicy: 'origin', method: 'POST',