The data in the request header is not visible to me.
Here's what I'm using:
$http.post('http://localhost/api/validate', {}, { headers: key } );
https://i.sstatic.net/yioTT.png
The form that gets passed during runtime is shown below:
https://i.sstatic.net/2Wjhc.png
I am puzzled as to why I can't see any data set in the header within the devtools. On the server side, I receive null values as well. Not sure where my mistake lies.
After reading through the comments and answers, I attempted something different, but unfortunately, it did not fix the issue.
http.post('http://localhost/api/validate',key,
{ headers: { 'Content-Type': 'aplication/json'}}
}
Unfortunately, the results remain the same :(
As requested in the comments, here's how it appears in Firefox: https://i.sstatic.net/y2gwK.png