From: luka Date: Tue, 10 Nov 2015 22:28:45 +0000 (+0000) Subject: uhttpd: add support for configuration option ubus_cors X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=commitdiff_plain;h=21d733b4203af10cc2f675e2d47f040699d82009 uhttpd: add support for configuration option ubus_cors Signed-off-by: Luka Perkov git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47448 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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"