summaryrefslogtreecommitdiff
path: root/package/network
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
commitb18c9d271eb21ab95d707cff60cc74b6cdd216f8 (patch)
treed7c063bc6b6f778ecc01ed81bea58b0df41a925a /package/network
parent99af1cf41095e05c233e02aa5ea5e64c2d545c0e (diff)
downloadmtk-20170518-b18c9d271eb21ab95d707cff60cc74b6cdd216f8.zip
mtk-20170518-b18c9d271eb21ab95d707cff60cc74b6cdd216f8.tar.gz
mtk-20170518-b18c9d271eb21ab95d707cff60cc74b6cdd216f8.tar.bz2
uhttpd: add support for configuration option ubus_cors
Signed-off-by: Luka Perkov <luka@openwrt.org> SVN-Revision: 47448
Diffstat (limited to 'package/network')
-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 d6ffc3b..add0924 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"