title: Laravel no objects anymore
body: <p>I've got a problem with <code>ssl</code> in my <code>Laravel 5.3</code> application. For some reason when I activate it on <code>Laravel forge</code> with <code>LetsEncrypt</code> it's not being send as an <code>object</code> anymore. This is how I receive it <code>without ssl</code>:</p>
  
  <p>(It's a <code>console.log(data)</code> within <code>vue.js 1.0</code>)</p>
  
  <p><a href="https://i.stack.imgur.com/Tfxkd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Tfxkd.png" alt="enter image description here"></a></p>
  
  <p>This is with <code>ssl</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/UTeIu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UTeIu.png" alt="enter image description here"></a>
  So with <code>ssl</code> I cannot say <code>data.token</code> anymore because that will be undefined (it's a string).</p>
  
  <p>In my <code>controller</code> I'm returning like this:</p>
  
  <pre><code> return response()-&gt;json(compact('token'))
                           -&gt;header("Content-Type", "application/json");
  </code></pre>
  
  <p>The Content-Type is <code>Content-Type: "application/json"</code> with or without <code>ssl</code> so that cannot be the problem...</p>
  
  <p>So basically my entire application i useless with <code>ssl</code>!</p>
  
  <p>I would really appreciate it if someone could tell me what's going on. Searched everywhere but I cannot find a solution.</p>