Skip to content

Commit

Permalink
Add :if and :vary options to README
Browse files Browse the repository at this point in the history
  • Loading branch information
cyu committed Feb 21, 2015
1 parent 85f756d commit c4ef55f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -83,9 +83,11 @@ A Resource path can be specified as exact string match (`/path/to/file.txt`) or

* **methods** (string or array): The HTTP methods allowed for the resource.
* **headers** (string or array or `:any`): The HTTP headers that will be allowed in the CORS resource request. Use `:any` to allow for any headers in the actual request.
* **expose** (string or an array): The HTTP headers in the resource response can can be exposed to the client.
* **expose** (string or array): The HTTP headers in the resource response can can be exposed to the client.
* **credentials** (boolean): Sets the `Access-Control-Allow-Credentials` response header.
* **max_age** (number): Sets the `Access-Control-Max-Age` response header.
* **if** (Proc): If the result of the proc is true, will process the request as a valid CORS request.
* **vary** (string or array): A list of HTTP headers to add to the 'Vary' header.


## Common Gotchas
Expand Down

0 comments on commit c4ef55f

Please sign in to comment.