uhttpd: add support for configuration option ubus_cors
authorLuka Perkov <luka@openwrt.org>
Tue, 10 Nov 2015 22:28:45 +0000 (22:28 +0000)
committerLuka Perkov <luka@openwrt.org>
Tue, 10 Nov 2015 22:28:45 +0000 (22:28 +0000)
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 47448

package/network/services/uhttpd/files/uhttpd.init

index d6ffc3b4c92c91fdcbda5f2f4c1c5b1d079e141d..add09243ecd6c04a61fdf9e14de589938d0f8edd 100755 (executable)
@@ -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"