title: Can I change referer in jsp or how to change referer？
body: <ol>
  <li>What I wanted to do is set different referer for every Link：</li>
  </ol>
  
  <p><img src="https://i.stack.imgur.com/1Be9o.png" alt="The Links"></p>
  
  <p>2.The explanation below is my attempt：</p>
  
  <p>Code 1:</p>
  
  <pre><code>&lt;a class="mymovie"
      mytitle="&lt;s:property value="movieLink"/&gt;"
      title="&lt;s:property value="movieDownloadPath"/&gt;" 
      href="javascript:void(0)"&gt;
        &lt;s:property value="movieName"/&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>Code 2:</p>
  
  <pre><code>$(".mymovie").click(function(){
      $.ajax({
        type:"get",
        url:$(this).attr("title"),
        beforeSend: function(request) {
                      request.setRequestHeader("Referer", $(this).attr("mytitle"));
                  },
     });
     alert($(this).attr("title"))
  });
  </code></pre>
  
  <ol start="3">
  <li>The effect</li>
  </ol>
  
  <blockquote>
    <p>chorm，jquery-2.1.4.min.js:4 Refused to set unsafe header "Referer"，jquery-2.1.4.min.js:4 XMLHttpRequest cannot load “This is a FTP link to download movie（like:ftp:/.....rmvb）” Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.</p>
  </blockquote>
  
  <p><img src="https://i.stack.imgur.com/L9CEO.png" alt="the effect in chorm"></p>
  
  <p>In Firefox，when I click one link, there is no effect. Any idea?</p>