Skip to content

Commit

Permalink
Add Web.config setting and comments for CORS support in IIS 7
Browse files Browse the repository at this point in the history
  • Loading branch information
wardbell committed Jan 29, 2013
1 parent 005e457 commit a46935d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace Breeze.WebApi
/// http://blog.bittercoder.com/2012/09/09/cors-and-webapi/
/// Install early in Web Api Pipeline,
/// perhaps in Global.asax or BreezeWebApiConfig
/// Set "runaAllManagedModulesForAllRequests" in Web.config for < IIS 8
/// </remarks>
/// <example>
/// // In Global.asax
Expand Down
3 changes: 3 additions & 0 deletions Samples/Todo-Angular/Todo-Angular/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
</DbProviderFactories>
</system.data>
<system.webServer>
<!-- Must enable managed modules to benefit from BreezeSimpleCorsHandler in IIS 7.
This setting is too extreme in high performance server. Not necessary at all for IIS 8.
<modules runAllManagedModulesForAllRequests="true" /> -->
<handlers>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace Breeze.WebApi
/// http://blog.bittercoder.com/2012/09/09/cors-and-webapi/
/// Install early in Web Api Pipeline,
/// perhaps in Global.asax or BreezeWebApiConfig
/// Set "runaAllManagedModulesForAllRequests" in Web.config for < IIS 8
/// </remarks>
/// <example>
/// // In Global.asax
Expand Down
3 changes: 3 additions & 0 deletions Samples/Todo-Require/Todo-Require/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
</DbProviderFactories>
</system.data>
<system.webServer>
<!-- Must enable managed modules to benefit from BreezeSimpleCorsHandler in IIS 7.
This setting is too extreme in high performance server. Not necessary at all for IIS 8.
<modules runAllManagedModulesForAllRequests="true" /> -->
<handlers>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
Expand Down
1 change: 1 addition & 0 deletions Samples/Todo/Todo/App_Start/BreezeSimpleCorsHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ namespace Breeze.WebApi
/// http://blog.bittercoder.com/2012/09/09/cors-and-webapi/
/// Install early in Web Api Pipeline,
/// perhaps in Global.asax or BreezeWebApiConfig
/// Set "runaAllManagedModulesForAllRequests" in Web.config for < IIS 8
/// </remarks>
/// <example>
/// // In Global.asax
Expand Down
3 changes: 3 additions & 0 deletions Samples/Todo/Todo/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
</DbProviderFactories>
</system.data>
<system.webServer>
<!-- Must enable managed modules to benefit from BreezeSimpleCorsHandler in IIS 7.
This setting is too extreme in high performance server. Not necessary at all for IIS 8. -->
<modules runAllManagedModulesForAllRequests="true" />
<handlers>
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public static void RegisterBundles(BundleCollection bundles)
bundles.Add(new ScriptBundle("~/bundles/breeze").Include(
"~/Scripts/q.js",
"~/Scripts/breeze.debug.js",
"~/Scripts/breeze.min.js",
"~/Scripts/breeze.savequeuing.js"));

bundles.Add(new ScriptBundle("~/bundles/todo").Include(
Expand Down

0 comments on commit a46935d

Please sign in to comment.