From 461ec20b37bacf8d3f44035705adb7fc0d7d34b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Christophe=20Chalt=C3=A9?= Date: Sun, 29 Oct 2017 15:22:17 +0100 Subject: [PATCH] Added Access-Control headers if CORS is enabled --- o.js | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/o.js b/o.js index 167662b..9479ecb 100644 --- a/o.js +++ b/o.js @@ -1509,6 +1509,7 @@ } if (base.oConfig.isCors && 'withCredentials' in xhr) { + xhr.withCredentials=true; // XHR for Chrome/Firefox/Opera/Safari. xhr.open(method, url, base.oConfig.isAsync); } diff --git a/package.json b/package.json index f05dbee..c3ba721 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "o.js", "description": "o.js is a client side Odata Javascript library to simplify the request of data. The main goal is to build a standalone, lightweight and easy to understand Odata lib.", - "version": "0.3.6", + "version": "0.3.7", "main": "o.js", "dependencies": { "q": "^1.5.0",