mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Cleanup unnecessary CSRF tokens passed
This commit is contained in:
parent
53e276e283
commit
af842e4aa6
17 changed files with 7 additions and 36 deletions
|
|
@ -476,7 +476,7 @@ print(
|
|||
|
||||
print[[
|
||||
<script>
|
||||
let import_csrf = ']] print(ntop.getRandomCSRFValue()) print[[';
|
||||
const import_csrf = ']] print(ntop.getRandomCSRFValue()) print[[';
|
||||
|
||||
$('#import-modal-btn').on("click", function(e) {
|
||||
|
||||
|
|
@ -522,8 +522,6 @@ print[[
|
|||
$("#import-error").text("]] print(i18n("request_failed_message")) print [[" + xhr.statusText).show();
|
||||
if (!d.success) {
|
||||
$("#import-error").text(d.error).show();
|
||||
// update token
|
||||
import_csrf = d.csrf;
|
||||
} else {
|
||||
location.reload();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue