Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Furnadjiev2016-01-28 04:53:31 -0500
committerIvan Furnadjiev2016-01-28 04:53:31 -0500
commite1ee03e0026c1cc3f57825ae03b7fe57560d0a6a (patch)
tree5e6fc6478d9f8855804621f9e51e73dc25db4385 /bundles
parentc5154b5abd84c7882563563da947102d2a2aa6cf (diff)
downloadorg.eclipse.rap-e1ee03e0026c1cc3f57825ae03b7fe57560d0a6a.tar.gz
org.eclipse.rap-e1ee03e0026c1cc3f57825ae03b7fe57560d0a6a.tar.xz
org.eclipse.rap-e1ee03e0026c1cc3f57825ae03b7fe57560d0a6a.zip
Remove "Referer" http header from all requests (again)
Commit 2a2ffcf6a387694209698ec5b6b9ec39bbaa572b has been reverted by mistake with commit 9d2fb9a106bbca34d31e1ae33a31021899a6ab39. Re-apply it again. Change-Id: Ib2c500ab741db6d6572104c1264e5472bdaa897e
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.rap.rwt/js/rwt/remote/Request.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/bundles/org.eclipse.rap.rwt/js/rwt/remote/Request.js b/bundles/org.eclipse.rap.rwt/js/rwt/remote/Request.js
index 28a83ff889..d6e214181e 100644
--- a/bundles/org.eclipse.rap.rwt/js/rwt/remote/Request.js
+++ b/bundles/org.eclipse.rap.rwt/js/rwt/remote/Request.js
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2015 EclipseSource and others.
+ * Copyright (c) 2012, 2016 EclipseSource and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -13,8 +13,6 @@ namespace( "rwt.remote" );
(function(){
-var Client = rwt.client.Client;
-
rwt.remote.Request = function( url, method, responseType ) {
this._url = url;
this._method = method;
@@ -85,9 +83,6 @@ rwt.remote.Request.prototype = {
},
_configRequest : function() {
- if( !( Client.isWebkit() || Client.isBlink() ) ) {
- this._request.setRequestHeader( "Referer", window.location.href );
- }
var contentType = "application/json; charset=UTF-8";
this._request.setRequestHeader( "Content-Type", contentType );
this._request.onreadystatechange = rwt.util.Functions.bind( this._onReadyStateChange, this );

Back to the top