aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2015-11-10 22:28:45 +0000
committerLuka Perkov <luka@openwrt.org>2015-11-10 22:28:45 +0000
commit5f3085cea6b9b1a244cde020e2eee5908dccac8c (patch)
tree2f3436f03051bec10cd23005d6f67189218923ff /package
parent8ba7a73334567ade7c45c3e424f968ebc67fbea0 (diff)
downloadmaster-187ad058-5f3085cea6b9b1a244cde020e2eee5908dccac8c.tar.gz
master-187ad058-5f3085cea6b9b1a244cde020e2eee5908dccac8c.tar.bz2
master-187ad058-5f3085cea6b9b1a244cde020e2eee5908dccac8c.zip
uhttpd: add support for configuration option ubus_cors
Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47448 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rwxr-xr-xpackage/network/services/uhttpd/files/uhttpd.init1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/services/uhttpd/files/uhttpd.init b/package/network/services/uhttpd/files/uhttpd.init
index d6ffc3b4c9..add09243ec 100755
--- a/package/network/services/uhttpd/files/uhttpd.init
+++ b/package/network/services/uhttpd/files/uhttpd.init
@@ -80,6 +80,7 @@ start_instance()
[ -f /usr/lib/uhttpd_ubus.so ] && {
append_arg "$cfg" ubus_prefix "-u"
append_arg "$cfg" ubus_socket "-U"
+ append_bool "$cfg" ubus_cors "-X" 0
}
append_arg "$cfg" script_timeout "-t"
append_arg "$cfg" network_timeout "-T"