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
master
Luka Perkov 2015-11-13 00:39:12 +00:00
parent 35769e8b34
commit 3356bf3780
1 changed files with 1 additions and 0 deletions

View File

@ -80,6 +80,7 @@ start_instance()
[ -f /usr/lib/uhttpd_ubus.so ] && { [ -f /usr/lib/uhttpd_ubus.so ] && {
append_arg "$cfg" ubus_prefix "-u" append_arg "$cfg" ubus_prefix "-u"
append_arg "$cfg" ubus_socket "-U" append_arg "$cfg" ubus_socket "-U"
append_bool "$cfg" ubus_cors "-X" 0
} }
append_arg "$cfg" script_timeout "-t" append_arg "$cfg" script_timeout "-t"
append_arg "$cfg" network_timeout "-T" append_arg "$cfg" network_timeout "-T"