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-a3cf2f4a3e73master
parent
35769e8b34
commit
3356bf3780
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue