From 1d477bd0e8219c32a8e8007b899068928a052fb6 Mon Sep 17 00:00:00 2001 From: Nanne Baars Date: Tue, 12 Nov 2019 08:01:32 +0100 Subject: [PATCH] Rename endpoint in JavaScript as backend call uses different endpoint --- webgoat-lessons/jwt/src/main/resources/js/jwt-voting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webgoat-lessons/jwt/src/main/resources/js/jwt-voting.js b/webgoat-lessons/jwt/src/main/resources/js/jwt-voting.js index 994ef7d3a..55f95b8a0 100644 --- a/webgoat-lessons/jwt/src/main/resources/js/jwt-voting.js +++ b/webgoat-lessons/jwt/src/main/resources/js/jwt-voting.js @@ -76,7 +76,7 @@ function vote(title) { } else { $.ajax({ type: 'POST', - url: 'JWT/votings/vote/' + title + url: 'JWT/votings/' + title }).then( function () { getVotings();