title: Missing WebApiConfig.cs in App_Start. Can I use Startup.cs?
body: <p>I have an ASP.NET Web Api v2 web app and I am trying to enable CORS so I can call the API's from a client on a different server.</p>
  
  <p>I am following a tutorial located <a href="http://www.infragistics.com/community/blogs/dhananjay_kumar/archive/2015/08/31/how-to-enable-cors-in-the-asp-net-web-api.aspx" rel="noreferrer">here</a> and it talks about adding the following lines of code to the <code>WebApiConfig.cs</code> file in the <code>App_Start</code> folder ...</p>
  
  <pre><code>var cors = new EnableCorsAttribute("http://localhost:5901", "*", "*");
  config.EnableCors(cors);
  </code></pre>
  
  <p>The problem is I don't have a <code>WebApiConfig.cs</code> in the App_Start directory. I do most of my configuration and routing in the <code>Startup.cs</code> file in the root of the web application. I don't recall ever using a <code>WebApiConfig.cs</code> file. Is this code something I can add to <code>Startup.cs</code>?</p>