<commit_before>## CORS Filter

* [Introduction](#introduction)
* [Quick Start](#quick-start)
* [Using CORS Filter in Your Maven Project](using-cors-filter-in-your-maven-project)
* [Configuring CORS Filter](configuring-cors-filter)
* [Information added by CORS Filter about request in HttpServletRequest object](information-added-by-cors-filter-about-request-in-httpservletrequest-object)
* [Background on CORS](#background-on-cors)
* [How it works](#how-it-works)
* [References](#references)

### Introduction
[CORS](http://www.w3.org/TR/cors/) (Cross Origin Resource Sharing) is a mechanism to enable cross origin requests. W3C defines the standards that enable this mechanism. CORS requires support from both the server and the browser in order to work. This is a Java Servlet Filter implementation of server-side CORS for Java web containers such as Apache Tomcat. Salient features:
* Easy to integrate and use - enable CORS capability with a few lines in your web.xml!<commit_msg>Updated README, corrected anchor links<commit_after>## CORS Filter

* [Introduction](#introduction)
* [Quick Start](#quick-start)
* [Using CORS Filter in Your Maven Project](#using-cors-filter-in-your-maven-project)
* [Configuring CORS Filter](#configuring-cors-filter)
* [Information added by CORS Filter about request in HttpServletRequest object](#information-added-by-cors-filter-about-request-in-httpservletrequest-object)
* [Background on CORS](#background-on-cors)
* [How it works](#how-it-works)
* [References](#references)

### Introduction
[CORS](http://www.w3.org/TR/cors/) (Cross Origin Resource Sharing) is a mechanism to enable cross origin requests. W3C defines the standards that enable this mechanism. CORS requires support from both the server and the browser in order to work. This is a Java Servlet Filter implementation of server-side CORS for Java web containers such as Apache Tomcat. Salient features:
* Easy to integrate and use - enable CORS capability with a few lines in your web.xml!
{'fraction_non_alphanumeric': 0.10120240480961924, 'fraction_numerical': 0.002004008016032064, 'mean_word_length': 5.4627831715210355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6041357', 'n_tokens_mistral': 560, 'n_tokens_neox': 542, 'n_words': 211}