summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClark Laughlin <clark.laughlin@linaro.org>2015-06-02 22:53:28 -0400
committerClark Laughlin <clark.laughlin@linaro.org>2015-06-02 22:53:28 -0400
commitf3f2dcc9116b7c63120eb67d530e8e389ed5132c (patch)
treea7a48119de0a424eb38445995db96bec0224a26f
parentf0ee973ddbb8bbe12ea97de0b72b74c5b40776e6 (diff)
allow CORS for calling .getJSON() from a different domain
-rw-r--r--lighttpd-static/lighttpd.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/lighttpd-static/lighttpd.conf b/lighttpd-static/lighttpd.conf
index e4af16f..3fe4b48 100644
--- a/lighttpd-static/lighttpd.conf
+++ b/lighttpd-static/lighttpd.conf
@@ -23,6 +23,8 @@ mimetype.assign = (
"" => "application/octet-stream"
)
+setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*")
+
$HTTP["url"] =~ "\.gz$" {
setenv.add-response-header = ( "Content-Encoding" => "x-gzip" )
compress.filetype = ()