This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use.
Learn more
Developer Network
Developer Network
Developer
:CreateViewProfileText:
Sign in
Subscriber portal
Get tools
Downloads
Visual Studio
SDKs
Trial software
Free downloads
Office resources
SharePoint Server 2013 resources
SQL Server 2014 Express resources
Windows Server 2012 resources
Programs
Subscriptions
Overview
Administrators
Students
Microsoft Imagine
Microsoft Student Partners
ISV
Startups
Events
Community
Magazine
Forums
Blogs
Channel 9
Documentation
APIs and reference
Dev centers
Samples
Retired content
We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second.
Microsoft Developer Network
>
Samples
>
CORS support in ASP.NET Web APIs - RC version
Download Visual Studio
Quick access
My samples
Upload a sample
Browse sample requests
CORS support in ASP.NET Web APIs - RC version
This sample shows how another way to enable CORS (Cross-Origin Resource Sharing) in an ASP.NET Web API project, both on a global level (using a message handler) or on a per-action basis (using a filter and an action selector).
Download
C# (1.4 MB)
Ratings
5 Star
(4)
Downloaded
5,335 times
Favorites
Add to favorites
Requires
Visual Studio 2010
Updated
7/2/2012
License
Apache License, Version 2.0
Share
Technologies
ASP.NET
,
ASP.NET MVC 4
,
ASP.NET Web API
Topics
HTTP
,
Web API
,
Cross-Domain
Report abuse to Microsoft
Description
Browse code
Q and A (4)