Skip to content

Commit 1819920

Browse files
committed
Fixed readme typos
1 parent b0f21f8 commit 1819920

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ The smallest number of individual calls allowed in a batch request. This has a
7474
This is a string array of the HTTP verbs that are **not** allowed to form part of a batch request. By default HEAD requests will not be batched. If for instance you did not want to batch HEAD and DELETE calls you would pass in this array as an option <code>['head', 'delete']</code>
7575

7676
####enabled
77-
True by default. If this is set to false the batcher will ignore all request and them will be send as normal single HTTP requests.
77+
True by default. If this is set to false the batcher will ignore all requests and they will be send as normal single HTTP requests.
7878

7979
####sendCookies
80-
False by default to reduce requesst size. If this is set to true cookies availiable on the document.cookie property will be set
81-
in each segment of a batch request. Note that only non HTTPOnly cookie will be sent as HTTPOnly cookies cannot be access by JavaScript
80+
False by default to reduce request size. If this is set to true cookies available on the document.cookie property will be set
81+
in each segment of a batch request. Note that only non HTTPOnly cookies will be sent as HTTPOnly cookies cannot be access by JavaScript
8282
because of security limitations.
8383

8484
Note that if you are sending CORS request you will have to enable withCredentials on $http to allow cookies to be sent on the XHR request.
@@ -89,15 +89,17 @@ Note that if you are sending CORS request you will have to enable withCredential
8989
}]);
9090
```
9191

92-
Also ensure the server responses to the OPTIONS call with the below header:
92+
Also ensure the server responds to the OPTIONS call with the below header:
9393

9494
```language-csharp
9595
Access-Control-Allow-Credentials: true
9696
97+
// As an attribute on the controller
9798
[EnableCors("*", "*", "*", SupportsCredentials=true)]
9899
99100
or
100101
102+
// Comples scenario on the config
101103
config.EnableCors();
102104
var defaultPolicyProvider = new EnableCorsAttribute("*", "*", "*");
103105
defaultPolicyProvider.SupportsCredentials = true; //important if you are sending cookies

0 commit comments

Comments
 (0)