Skip to content

Commit 700de5a

Browse files
committed
Change .load() calls to GET to avoid CSRF protection.
Thanks to Tomasz Buchert for the suggestion.
1 parent cc1f3b9 commit 700de5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

debug_toolbar/media/debug_toolbar/js/toolbar.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
return false;
4545
});
4646
$('#djDebug a.remoteCall').click(function() {
47-
$('#djDebugWindow').load(this.href, {}, function(response, status, xhr) {
47+
$('#djDebugWindow').load(this.href, function(response, status, xhr) {
4848
if (status == "error") {
4949
var message = '<div class="djDebugPanelTitle"><a class="djDebugClose djDebugBack" href="">Back</a><h3>'+xhr.status+': '+xhr.statusText+'</h3></div>';
5050
$('#djDebugWindow').html(message);

debug_toolbar/media/debug_toolbar/js/toolbar.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)