From: Luka Perkov Date: Fri, 13 Nov 2015 00:39:12 +0000 (+0000) Subject: uhttpd: add support for configuration option ubus_cors X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=f9a35b06046e1a05ac76234c2a5d3be5ae0f6a94;p=openwrt%2Fsvn-archive%2Fopenwrt.git uhttpd: add support for configuration option ubus_cors Signed-off-by: Luka Perkov SVN-Revision: 47462 --- diff --git a/package/network/services/uhttpd/files/uhttpd.init b/package/network/services/uhttpd/files/uhttpd.init index 7f0d4027f8..9bde7e5312 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"