Skip to content

Commit

Permalink
Merge pull request #53 from jcchalte/master
Browse files Browse the repository at this point in the history
Added Access-Control headers if CORS is enabled
  • Loading branch information
janhommes authored Nov 1, 2017
2 parents 941c431 + 1d91b67 commit 1e77c8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions o.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 1e77c8a

Please sign in to comment.