aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMatthieu Brouillard <matthieu@brouillard.fr>2015-07-08 14:02:12 +0200
committerMatthieu Brouillard <matthieu@brouillard.fr>2015-07-08 14:02:12 +0200
commit709bd63d3d1d89e4bb35a2f721d3b2d07cec892d (patch)
treea7065235680c4f8e019ed5eaffa7b0b5c238db25 /README.md
parent7247cca550e6163d625356c6fa7f2a7b965c5ef4 (diff)
downloadnanohttpd-709bd63d3d1d89e4bb35a2f721d3b2d07cec892d.tar.gz
fixes #25 add basic CORS support
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6f7f439..5eb1084 100644
--- a/README.md
+++ b/README.md
@@ -112,6 +112,10 @@ NanoHTTPD project currently consist of four parts:
* File server serves also very long files without memory overhead.
* Contains a built-in list of most common MIME types.
* Runtime extension support (extensions that serve particular MIME types) - example extension that serves Markdown formatted files. Simply including an extension JAR in the webserver classpath is enough for the extension to be loaded.
+* Simple [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) support via `--cors`
+ * by default serves `Access-Control-Allow-Headers: origin,accept,content-type`
+ * possibility to set `Access-Control-Allow-Headers` by setting System property: `AccessControlAllowHeader`
+ * _example: _ `-DAccessControlAllowHeader=origin,accept,content-type,Authorization`
## Maven dependencies