How to get custom header from HTTP response in Laravel 5?
<p>I'm trying to access a custom header from the Request in Laravel. The header name is &quot;accessing_from&quot;. Listing all the headers in Laravel, gives me only the &quot;standard ones&quot;, but the one that I've set isn't present in the list. Checking in the browser network tab I can see that the header gets sent. So I'm wondering how to access it from within Laravel.</p>
<p>I'm using Angular2 to make the request with the default http service.</p>
<h3>The Laravel's $response-&gt;header() dump:</h3>
<p><a href="https://i.stack.imgur.com/5Ti9V.png" rel="noreferrer"><img src="https://i.stack.imgur.com/5Ti9V.png" alt="enter image description here" /></a></p>
<h3>The web inspector's log:</h3>
<p><a href="https://i.stack.imgur.com/yJ8g1.png" rel="noreferrer"><img src="https://i.stack.imgur.com/yJ8g1.png" alt="enter image description here" /></a>
Thanks to anyone!</p>