CORS open source contribution to ASP.NET and System.Web.Cors
Dominick is the person who convinced me to build the CORS implementation in Thinktecture IdentityModel. I didn’t realize it would be used as much as it has. Given the popularity and the need for something built into ASP.NET (and specifically WebAPI), I submitted my CORS implementation as a contribution to the ASP.NET web stack. Microsoft accepted my contribution and I worked with them for a couple of weeks to rework the design for inclusion into the platform.
I’m happy to announce that today Microsoft (specifically Yao, who was a pleasure to work with) did the checkin into the master branch to support CORS in the ASP.NET web stack. This means we’ll have framework support for CORS in the next release of WebAPI. It also means that I get the honor and privilege to be listed as a contributor to ASP.NET.
Yao has already provided some initial documentation here.
Edit: Here’s the Channel9 interview related to this.
Congratulations! Can you blog post a small example?
Thanks and yep — will work on that next :)
Yao beat me to do — here’s his initial docs: http://aspnetwebstack.codeplex.com/wikipage?title=CORS%20support%20for%20ASP.NET%20Web%20API
That is fantastic news Brock. Your CORS implementation is pretty much a must have when developing with WebAPI, so its great that it is now part of the core stack.
thanks :)
Reblogged this on http://www.leastprivilege.com.
awesome! good work :)
Cool! Your implementation and blog helped me out a lot recently with first WebAPI project. Thanks.
great news!
will the MVC part be added, too?
Not sure if they’ll carry forth the MVC implementation as well. If not, then I’ll provide a new library that follows the new design.
Congratulations man.
Hey. I’m building an ASP MVC 4 Hybrid, so I need to use the Microsoft.AspNet.Cors instead of the WebApi flavor. But all the documentation (understandingly) points to the Api one.
Yep, and their retort is “it’s all open source, so just go read the code” :)