Skip to content

Commit

Permalink
Issue #9298: removed code for setting a request referer header (#9299)
Browse files Browse the repository at this point in the history
  • Loading branch information
level420 committed Mar 21, 2017
1 parent 03cb779 commit 35673f7
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions framework/source/class/qx/io/remote/transport/XmlHttp.js
Expand Up @@ -341,18 +341,9 @@ qx.Class.define("qx.io.remote.transport.XmlHttp",
// --------------------------------------
// Applying request header
// --------------------------------------
// Add a Referer header

// The Java backend uses the referer header, and Firefox doesn't send one by
// default (see here:
// http://www.mercurytide.co.uk/whitepapers/issues-working-with-ajax/ ). Even when
// not using a backend that evaluates the referrer, it's still useful to have it
// set correctly, e.g. when looking at server log files.
if (!(qx.core.Environment.get("engine.name") == "webkit"))
{
// avoid "Refused to set unsafe header Referer" in Safari and other Webkit-based browsers
vRequest.setRequestHeader('Referer', window.location.href);
}
// Removed adding a referer header as this is not allowed anymore on most
// browsers
// See issue https://github.com/qooxdoo/qooxdoo/issues/9298

var vRequestHeaders = this.getRequestHeaders();

Expand Down

0 comments on commit 35673f7

Please sign in to comment.