From a22f050861ed8addc6b5fdaa7b3a3caf4cb379e3 Mon Sep 17 00:00:00 2001 From: Paul Spooren Date: Fri, 4 Aug 2017 18:09:43 +0200 Subject: luci-app-attendedsysupgrade: remove leading slash the slash leads to // redirecting to /. The redirecting causes problems with CORS [1]. [1]: http://enable-cors.org/ Signed-off-by: Paul Spooren --- .../luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm b/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm index 8bcec3b49..4f8bf7cc9 100644 --- a/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm +++ b/applications/luci-app-attendedsysupgrade/luasrc/view/attendedsysupgrade.htm @@ -178,7 +178,7 @@ function image_request() { request_dict = {} request_dict.version = latest_version; request_dict.board = data.board_name - server_request(request_dict, "/image-request", image_request_handler) + server_request(request_dict, "image-request", image_request_handler) } function image_request_handler(response) { -- cgit v1.2.3