WebApi cors for runtime 4.0

前端 未结 5 1692
别跟我提以往
别跟我提以往 2021-01-21 23:36

I need WebApi Cors dll for web api project. I installed Web Api version for .net 4 framework, because I use VS 2010. I tried to install web api cors lib via nuget (Install-Packa

5条回答
  •  难免孤独
    2021-01-22 00:09

    CORS is natively supported in Web API 2 only. However, you can write your own extensions. Take a look at this tutorial by Carlos Figueira. The tutorial not only applies to the RC version but also to final version 1.

提交回复
热议问题