diff --git a/resources/views/admin/nodes/view/allocation.blade.php b/resources/views/admin/nodes/view/allocation.blade.php index c6e30db5d..4777b82f3 100644 --- a/resources/views/admin/nodes/view/allocation.blade.php +++ b/resources/views/admin/nodes/view/allocation.blade.php @@ -218,7 +218,7 @@ }, function () { $.ajax({ method: 'DELETE', - url: '/admin/nodes/view/' + Pterodactyl.node.id + '/allocation/remove/' + allocation, + url: '/admin/nodes/view/' + {{ $node->id }} + '/allocation/remove/' + allocation, headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') }, }).done(function (data) { element.parent().parent().addClass('warning').delay(100).fadeOut(); @@ -247,7 +247,7 @@ clearTimeout(fadeTimers[element.data('id')]); $.ajax({ method: 'POST', - url: '/admin/nodes/view/' + Pterodactyl.node.id + '/allocation/alias', + url: '/admin/nodes/view/' + {{ $node->id }} + '/allocation/alias', headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') }, data: { alias: element.val(), @@ -321,7 +321,7 @@ }, function () { $.ajax({ method: 'DELETE', - url: '/admin/nodes/view/' + Pterodactyl.node.id + '/allocations', + url: '/admin/nodes/view/' + {{ $node->id }} + '/allocations', headers: {'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content')}, data: JSON.stringify({ allocations: selectedIds