aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2015-11-13 00:39:12 +0000
committerLuka Perkov <luka@openwrt.org>2015-11-13 00:39:12 +0000
commit3356bf3780b67bd777a6cfd401bdee231d2a752b (patch)
tree3bec24b434e3b0995c2a1ec283e61a2cf6722d96 /package
parent35769e8b34631c3526b908db7c09f6924421c24d (diff)
downloadupstream-3356bf3780b67bd777a6cfd401bdee231d2a752b.tar.gz
upstream-3356bf3780b67bd777a6cfd401bdee231d2a752b.tar.bz2
upstream-3356bf3780b67bd777a6cfd401bdee231d2a752b.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/branches/chaos_calmer@47462 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 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"