浏览代码

uhttpd: add support for configuration option ubus_cors

Signed-off-by: Luka Perkov <[email protected]>

SVN-Revision: 47448
Luka Perkov 10 年之前
父节点
当前提交
b18c9d271e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      package/network/services/uhttpd/files/uhttpd.init

+ 1 - 0
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"