title: Safari mobile and desktop are hiding full referrer URL: why?
body: <p>I have a website, <code>www.a.com</code></p>
  
  <p>In that website, I serve a page at <code>https://www.a.com/mypage</code> that contains this:</p>
  
  <pre><code>&lt;script src='https://www.b.com/anotherpage'&gt;&lt;/script&gt;
  </code></pre>
  
  <p>If I visit from every browser, <code>b.com</code> will receive this as http referrer:</p>
  
  <p><code>https://www.a.com/mypage</code></p>
  
  <p>However, if I visit from Safari mobile or desktop, the referrer becomes:</p>
  
  <p><code>https://www.a.com/</code></p>
  
  <p>Why? How can I force Safari to send the full referrer?</p>
  
  <p>Example:</p>
  
  <p>from Safari, b.com logs:</p>
  
  <pre><code>123.45.678.901 - - [06/Jun/2020:00:32:03 +0200] "GET /anotherpage/ HTTP/1.1" 200 0 "https://www.a.com/" "Mozilla/5.0 (iPhone; CPU iPhone OS 13_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Mobile/15E148 Safari/604.1"
  </code></pre>
  
  <p>from another browser:</p>
  
  <pre><code>123.45.678.901 - - [06/Jun/2020:00:31:34 +0200] "GET /anotherpage/ HTTP/1.1" 200 0 "https://www.a.com/mypage/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36"
  </code></pre>
  
  <p>I've tried adding this:</p>
  
  <pre><code>&lt;meta name="referrer" content="unsafe-url"&gt;
  </code></pre>
  
  <p>or this</p>
  
  <pre><code>&lt;meta name="referrer" content="always"&gt;
  </code></pre>
  
  <p>to the <code>&lt;head&gt;</code> of <code>https://www.a.com/mypage</code> but to no avail.</p>