title: Disable HTTP OPTIONS method in spring boot application
body: <p>I had developed rest API on spring boot application. The APIs accept only GET , and POST , but on requesting using OPTIONS method , API responding 200 status (instead of 405). I googled this issue , but none of the solution was springboot based . </p>
  
  <p>Response:</p>
  
  <pre><code>Allow: OPTIONS, TRACE, GET, HEAD, POST
  Public: OPTIONS, TRACE, GET, HEAD, POST
  </code></pre>
  
  <p>Need to disable OPTIONS method.</p>