title: Can you completely disable CORS support in Spring?
body: <p>As described in <a href="https://stackoverflow.com/questions/38507370/cors-preflight-request-fails-due-to-a-standard-header">CORS preflight request fails due to a standard header</a> if you send requests to <code>OPTIONS</code> endpoints with the <code>Origin</code> and <code>Access-Control-Request-Method</code> headers set then they get intercepted by the Spring framework, and your method does not get executed. The accepted solution is the use <code>@CrossOrigin</code> annotations to stop Spring returning a <code>403</code>. However, I am generating my API code with <a href="https://github.com/swagger-api/swagger-codegen" rel="noreferrer">Swagger Codegen</a> and so I just want to disable this and implement my <code>OPTIONS</code> responses manually.</p>
  
  <p>So can you disable the CORS interception in Spring?</p>