title: Laravel Cors Referrer Policy
body: <p>I run into the error below in Laravel 8 with <a href="https://www.chatbro.com/en/" rel="nofollow noreferrer">ChatBro</a> service when a user try to send a new message;</p>
  <blockquote>
  <p>Seems like the 'Referrer-Policy' of your site is 'no-referral'. For
  correct chat's work it must be equal 'no-referrer-when-downgrade' or
  any other that suits you. More information about 'Referral policy' you
  can find</p>
  </blockquote>
  <p>Apparently, my request header is set to <code>Referrer Policy: no-referrer</code>.</p>
  <p>The request response is;</p>
  <blockquote>
  <p>{&quot;error&quot;:&quot;Referer null or empty&quot;,&quot;type&quot;:&quot;RefererException&quot;}</p>
  </blockquote>
  <p>I'm using <code>laravel/cors</code> package with the configuration below;</p>
  <pre class="lang-php prettyprint-override"><code>'paths'                    =&gt; ['api/*', 'api0/*'],
  'allowed_methods'          =&gt; ['*'],
  'allowed_origins'.         =&gt; ['*'],
  'allowed_origins_patterns' =&gt; [],
  'allowed_headers'          =&gt; ['*'],
  'exposed_headers'          =&gt; [],
  'max_age'                  =&gt; 0,
  'supports_credentials'     =&gt; false,
  </code></pre>
  <p>How Can I fix this?</p>