Created
March 14, 2013 14:34
-
-
Save beyond-code-github/5161831 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void RegisterCors(HttpConfiguration httpConfiguration) | |
{ | |
WebApiCorsConfiguration corsConfig = new WebApiCorsConfiguration(); | |
corsConfig.RegisterGlobal(httpConfiguration); | |
corsConfig.ForAllOrigins().AllowMethods("GET", "POST", "PUT", "PATCH", "DELETE").AllowAllRequestHeaders(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment