Created
December 19, 2012 17:08
-
-
Save eugeneagafonov/4338381 to your computer and use it in GitHub Desktop.
web config with OPTIONSVerbHandler removed for CORS with Thinktecture.IdentityModel and ASP.NET Web API to work properly
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
<system.webServer> | |
<modules runAllManagedModulesForAllRequests="false"> | |
<remove name="WebDAVModule" /> | |
</modules> | |
<handlers> | |
<remove name="WebDAV"/> | |
<remove name="OPTIONSVerbHandler"/> | |
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" /> | |
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" /> | |
<remove name="ExtensionlessUrlHandler-Integrated-4.0" /> | |
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" /> | |
<add name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness64" responseBufferLimit="0" /> | |
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" /> | |
</handlers> | |
</system.webServer> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment