WebApi cors for runtime 4.0

前端 未结 5 1644
别跟我提以往
别跟我提以往 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:31

    For IIS 6 servers:

    To CORS-enable Microsoft IIS6, perform the following steps:

    • Open Internet Information Service (IIS) Manager
    • Right click the site you want to enable CORS for and go to Properties
    • Change to the HTTP Headers tab In the Custom HTTP headers section, click Add
    • Enter Access-Control-Allow-Origin as the header name
    • Enter * as the header value
    • Click Ok twice

    http://enable-cors.org/server_iis6.html

提交回复
热议问题