Skip to content
This repository has been archived by the owner on Jul 16, 2019. It is now read-only.

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitsoni committed Jun 1, 2013
1 parent 39b56e5 commit fade8e8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ To override filter configuration defaults, specify them in the init-params while
<param-value>true</param-value>
</init-param>
<init-param>
<description>A flag control logging</description>
<description>A flag to control logging</description>
<param-name>cors.logging.enabled</param-name>
<param-value>true</param-value>
</init-param>
Expand All @@ -120,7 +120,12 @@ CORS Filter adds information about a CORS request, in the HttpServletRequest obj

* **cors.isCorsRequest**: Flag to determine if a request is a CORS request.
* **cors.request.origin**: Origin URL.
* **cors.request.type**: Type of CORS request. Possible values: SIMPLE or ACTUAL or PRE_FLIGHT or NOT_CORS or INVALID_CORS.
* **cors.request.type**: Type of CORS request. Possible values:
* SIMPLE: A request which is not preceded by a pre-flight request.
* ACTUAL: A request which is preceded by a pre-flight request.
* PRE_FLIGHT: A pre-flight request.
* NOT_CORS: A normal same-origin request.
* INVALID_CORS: A cross-origin request, which is invalid.
* **cors.request.headers**: Request headers sent as 'Access-Control-Request-Headers' header, for a pre-flight request.

To prevent CORS Filter from setting above attributes, set 'cors.request.decorate' init-param to false.
Expand Down Expand Up @@ -150,4 +155,4 @@ A list of good security resources around CORS:
* [OWASP HTML 5 Security Cheatsheet and CORS](https://www.owasp.org/index.php/HTML5_Security_Cheat_Sheet#Cross_Origin_Resource_Sharing)
* [OWASP CORS Preflight Scrutiny](https://www.owasp.org/index.php/CORS_RequestPreflighScrutiny)
* [OWASP CORS Origin Scrutiny](https://www.owasp.org/index.php/CORS_OriginHeaderScrutiny)
* [HTML 5 Security Wiki and CORS](https://code.google.com/p/html5security/wiki/CrossOriginRequestSecurity)
* [HTML 5 Security Wiki and CORS](https://code.google.com/p/html5security/wiki/CrossOriginRequestSecurity)

0 comments on commit fade8e8

Please sign in to comment.