diff options
author | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2013-12-23 19:27:44 +0100 |
---|---|---|
committer | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2013-12-23 19:27:44 +0100 |
commit | 0a9322ccb029bf6edc1f0bf01a29303fd8600614 (patch) | |
tree | f2baef2921f9d833709b2e1a1eea8b2f4c7bdf37 | |
parent | 99da8fc97f5de84a2602d7d261b6deb627cf8bd6 (diff) | |
download | gwtquery-0a9322ccb029bf6edc1f0bf01a29303fd8600614.tar.gz gwtquery-0a9322ccb029bf6edc1f0bf01a29303fd8600614.zip |
Set credentials with gQuery utilities to avoid breaking apps before 2.5.1
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilder.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilder.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilder.java index c19cf704..dea15355 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilder.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/plugins/deferred/PromiseReqBuilder.java @@ -124,7 +124,9 @@ public class PromiseReqBuilder extends DeferredPromiseImpl implements RequestCal xmlHttpRequest.setRequestHeader("Content-Type", ctype); } - xmlHttpRequest.setWithCredentials(true); + // Using gQuery to set credentials since this method was added in 2.5.1 + // xmlHttpRequest.setWithCredentials(true); + JsUtils.prop(xmlHttpRequest, "withCredentials", true); final Request request = createRequestVltr(xmlHttpRequest, settings.getTimeout(), this); |