title: "transparent" server side proxy for requests to ASP.NET Web API
body: <p>Have an ASP.NET Web API endpoint that generates JSON responses. But due to two factors can't be consumed directly from a browser.</p>
  
  <ol>
  <li>cross-domain issues</li>
  <li>need to provide session ticket for the API that is known only server side</li>
  </ol>
  
  <p>So I need a lightweight server side proxy for client(browser) requests to extend the request with session key. Do not want to impose an overhead deserializing client JSON requests or Web API JSON responses in the proxy code. Would like to pass the payload "as is" and deserialize client requests only Web API side and the Web API responses only client (browser) side. That is the proxy takes json from the browser and passes it directly to Web API. It also passes the JSON response from the Web API to the browser directly without deserialization. Just a dummy proxy that does not know anything about the data it transfers.
  Please suggest is it feasible and what is the best way to implement it. The existing web application (the one that is used to generate the client pages) is implemented using ASP.NET MVC 4.</p>
  
  <p>Thanks in advance.</p>