{"id":19433427,"url":"https://github.com/foo4u/cors-filter","last_synced_at":"2025-10-26T01:14:39.314Z","repository":{"id":141527595,"uuid":"8263779","full_name":"foo4u/cors-filter","owner":"foo4u","description":"Provides a basic cross-origin resource sharing Java servlet filter for 1.4+ JVMs","archived":false,"fork":false,"pushed_at":"2013-02-23T05:32:29.000Z","size":180,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-25T06:20:10.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foo4u.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-02-18T07:35:06.000Z","updated_at":"2014-06-22T01:16:47.000Z","dependencies_parsed_at":"2023-03-13T10:32:49.489Z","dependency_job_id":null,"html_url":"https://github.com/foo4u/cors-filter","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/foo4u/cors-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo4u%2Fcors-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo4u%2Fcors-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo4u%2Fcors-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo4u%2Fcors-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foo4u","download_url":"https://codeload.github.com/foo4u/cors-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foo4u%2Fcors-filter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261756761,"owners_count":23205157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T14:39:46.998Z","updated_at":"2025-10-26T01:14:39.230Z","avatar_url":"https://github.com/foo4u.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CORS Filter\n\nProvides a [cross-origin resource sharing] [1] servlet filter compatible with Java 1.4+ JVMs.\n\nThis filter is intended to be simple and require no external runtime dependencies besides \nthe J2EE servlet API.  It is by no means the most feature rich CORS servlet filter \nimplementation but instead focuses on simplicity, minimal code and support for the \nlegacy JDK 1.4.\n\n## Usage\n\nAdd the filter and at least one filter mapping to your `web.xml` file.\n\n```\n\u003cfilter id=\"CorsFilter\"\u003e\n  \u003cfilter-name\u003eCorsFilter\u003c/filter-name\u003e\n  \u003cfilter-class\u003enet.rossillo.cors.filter.SimpleCorsFilter\u003c/filter-class\u003e\n\u003c/filter\u003e\n\u003cfilter-mapping\u003e\n  \u003cfilter-name\u003eCorsFilter\u003c/filter-name\u003e\n  \u003curl-pattern\u003e/service/*\u003c/url-pattern\u003e\n\u003c/filter-mapping\u003e\n```\n\nBy default, only HTTP `GET` requests are permitted by the filter.  To add support for other\nHTTP request methods, declare them as a comma-delimited string via an init parameter.\n\nFor example, to support `GET`, `POST` and `PUT` requests, specify them as the value for the\n`methods` configuration parameter.\n\n```\n\u003cfilter id=\"CorsFilter\"\u003e\n  \u003cfilter-name\u003eCorsFilter\u003c/filter-name\u003e\n  \u003cfilter-class\u003enet.rossillo.cors.filter.SimpleCorsFilter\u003c/filter-class\u003e\n  \u003cinit-param\u003e\n    \u003cparam-name\u003emethods\u003c/param-name\u003e\n    \u003cparam-value\u003eGET, POST, PUT\u003c/param-value\u003e\n  \u003c/init-param\u003e\n\u003c/filter\u003e\n```\n\n## Downloading Artifacts\n\n### Dependencies\n\n```\n\u003cdependency\u003e\n  \u003cgroupId\u003enet.rossillo.cors\u003c/groupId\u003e\n  \u003cartifactId\u003ecors-filter\u003c/artifactId\u003e\n  \u003cversion\u003e${version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Repositories\n\n```\n\u003crepository\u003e\n  \u003cid\u003ereleases\u003c/id\u003e\n  \u003curl\u003ehttp://repo.rossillo.net/nexus/content/repositories/releases\u003c/url\u003e\n\u003c/repository\u003e\n\n\u003csnapshotRepository\u003e\n  \u003cid\u003esnapshots\u003c/id\u003e\n  \u003curl\u003ehttp://repo.rossillo.net/nexus/content/repositories/snapshots\u003c/url\u003e\n\u003c/snapshotRepository\u003e  \n```\n\n## Building from Source\n\n1. Clone the repository from GitHub\n2. Navigate into the cloned repository directory\n3. Use [Gradle] [2] to build the distribution\n\n```\n$ git clone git://github.com/foo4u/cors-filter.git\n$ cd cors-filter\n$ $ ./gradlew build\n```\n\n## Importing Sources Into Eclipse\n\n1. Generate Eclipse metadata\n2. Once complete, import into Eclipse `File -\u003e Import -\u003e Existing projects into workspace`\n\n```\n$ ./gradlew eclipse\n```\n\n## Issue Tracking\n\nReport bugs and feature requests via [GitHub Issues] [3].\n\n## Contributing\n\nPull requests welcome.  Please follow these simple guidelines:\n\n1. Fork the repository\n2. Always work on topic branches (e.g. ISSUE-123)\n3. Follow the \"Commit Guidelines\" outlined in [Pro Git] [4]\n3. When ready to resolve an issue or to collaborate with others, you can push your branch to origin\n4. When ready for your contribution to be reviewed for potential inclusion, send a pull request\n\n## License\n\nCORS Filter is licensed under the MIT License.\n\n[1]: http://en.wikipedia.org/wiki/Cross-origin_resource_sharing \"Wikipedia\"\n[2]: http://www.gradle.org \"Gradle\"\n[3]: https://github.com/foo4u/cors-filter/issues \"Issues\"\n[4]: http://git-scm.com/book/ch5-2.html \"Pro-Git\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoo4u%2Fcors-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoo4u%2Fcors-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoo4u%2Fcors-filter/lists"}