Web API method only allow post
<p>On the web api template provided by Microsoft, there are a bunch of methods in the <code>AccountController</code>.</p>

<p>Take for example <code>Logout</code>, it only allows POST requests and it warns if you try to do a GET to it. </p>

<pre><code>// POST api/Account/Logout
[Route("Logout")]
public IHttpActionResult Logout()
{
    Authentication.SignOut(CookieAuthenticationDefaults.AuthenticationType);
    return Ok();
}
</code></pre>

<p>Where is it defined that this only responds to a POST, or what is telling this to only respond to a POST?</p>

<p>It does not have an <code>HttpPost</code> attribute or anything on it.</p>