diff options
author | Matthieu Brouillard <matthieu@brouillard.fr> | 2015-07-08 14:02:12 +0200 |
---|---|---|
committer | Matthieu Brouillard <matthieu@brouillard.fr> | 2015-07-08 14:02:12 +0200 |
commit | 709bd63d3d1d89e4bb35a2f721d3b2d07cec892d (patch) | |
tree | a7065235680c4f8e019ed5eaffa7b0b5c238db25 /README.md | |
parent | 7247cca550e6163d625356c6fa7f2a7b965c5ef4 (diff) | |
download | nanohttpd-709bd63d3d1d89e4bb35a2f721d3b2d07cec892d.tar.gz |
fixes #25 add basic CORS support
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |