I'm sending username and password in the HTTP Body
for authentication to each controller action
in a Web API
. I do the authentication in each controller using the username/password. It's using SSL
.
Are there any security reasons why it's better to send the authentication credentials
in the HTTP Header
than in the HTTP body
?
If I was using Basic Authentication
I can see how having the credentials in the header are necessary as in this question but I'm not so I don't see the purpose. It seems just as secure in either as long as it's using SSL
.