ASP.NET web api 2 EnableCors Method not found -


i installed webapi2 , version of assemblies installed successful message:

adding 'microsoft.aspnet.webapi.client 5.2.3' at.web. added 'microsoft.aspnet.webapi.client 5.2.3' at.web. adding 'microsoft.aspnet.webapi.core 5.2.3' at.web. added 'microsoft.aspnet.webapi.core 5.2.3' at.web. adding 'microsoft.aspnet.cors 5.2.3' at.web. added 'microsoft.aspnet.cors 5.2.3' at.web. 

but in webapiconfig.cs in register method, want enable cors there no method "enablecors",

please suggest

google friend... http://www.asp.net/web-api/overview/security/enabling-cross-origin-requests-in-web-api

esentially. install-package microsoft.aspnet.webapi.cors

hth, ojf


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -