From 361dd47f0abab271f8ae3bf4ce2cdcc3b0b91c99 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Thu, 14 Jul 2016 22:06:47 -0700 Subject: [PATCH] Simplify requests --- ext/bg/js/yomichan.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/ext/bg/js/yomichan.js b/ext/bg/js/yomichan.js index cd4bd4c1..9d03aff6 100644 --- a/ext/bg/js/yomichan.js +++ b/ext/bg/js/yomichan.js @@ -144,8 +144,6 @@ class Yomichan { }); xhr.open('POST', 'http://127.0.0.1:8765'); - xhr.withCredentials = true; - xhr.setRequestHeader('Content-Type', 'text/json'); xhr.send(JSON.stringify({action, params})); } else { callback(null);