title: Laravel Echo/Pusher/Vue - /broadcasting/auth returns empty HTML response
body: <p>I had managed to get a laravel/echo/pusher chat application working in my local machine. However once I uploaded to the server the authorization end-point seems failed. I tried a whole bunch of things that just made everything worse.</p>
  <p>In my local machine I had (<code>app.js</code>):</p>
  <pre><code>window.Echo = new Echo({
  authEndpoint : 'https://localhost/**********/*******/public/broadcasting/auth',
  broadcaster: 'pusher',
  key: '*****************',
  cluster: '**',
  forceTLS: true,});
  </code></pre>
  <p>which successfully connected to pusher and broadcast events. Chat was working fine.</p>
  <p>After uploading to the server I changed this to:</p>
  <pre><code>window.Echo = new Echo({
  authEndpoint : '/broadcasting/auth',
  broadcaster: 'pusher',
  key: '**************',
  cluster: 'eu',
  forceTLS: true,});
  </code></pre>
  <p>Which, I checked, redirects to <code>https://example.com/broadcasting/auth</code>. Now this url initially returned <code>404</code>. At some point I tried to use again: <code>https://localhost/***/.../broadcasting/auth</code>, which in turn failed as cross origin request.</p>
  <p>After playing quite a lot with configuration files, composer and npm somehow the same url returns no specific response anymore.
  This is the request:</p>
  <pre><code>GET /broadcasting/auth HTTP/1.1
  Host: domain_name
  User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
  Accept-Language: en-US,en;q=0.5
  Accept-Encoding: gzip, deflate, br
  Connection: keep-alive
  Cookie: XSRF-TOKEN=token_value activebabies_session=session_token
  Upgrade-Insecure-Requests: 1
  Cache-Control: max-age=0
  </code></pre>
  <p>And this is the response:</p>
  <pre><code>HTTP/1.1 200 OK
  Date: Wed, 23 Sep 2020 16:26:01 GMT
  Server: Apache
  Cache-Control: no-cache, private
  Set-Cookie: XSRF-TOKEN=token_value; expires=Wed, 23-Sep-2020 18:26:01 GMT; Max-Age=7200; path=/; samesite=lax
  Set-Cookie: activebabies_session=session_value; expires=Wed, 23-Sep-2020 18:26:01 GMT; Max-Age=7200; path=/; httponly; samesite=lax
  Content-Length: 0
  Keep-Alive: timeout=5, max=100
  Connection: Keep-Alive
  Content-Type: text/html; charset=UTF-8
  </code></pre>
  <p>There are no errors in the console. At some point there were connections to pusher, just no events broadcast. Currently there are not even connections to pusher.</p>
  <p>Any ideas as to why this might be happening? I would be happy to post any additional info that may be required (app.js , .env file, broadcasting.php) but the configuration has to be correct since it worked locally...</p>