Skip to content

Commit

Permalink
[bugfix] allow database macro to work when CSRF is diabled (#2884)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinr1234 authored and mistercrunch committed Jun 1, 2017
1 parent 04b662e commit 52b0716
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/templates/superset/models/database/macros.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
$("#testconn").click(function(e) {
e.preventDefault();
var url = "/superset/testconn";
var csrf_token = "{{ csrf_token() }}";
var csrf_token = "{{ csrf_token() if csrf_token else '' }}";

$.ajaxSetup({
beforeSend: function(xhr, settings) {
Expand Down

0 comments on commit 52b0716

Please sign in to comment.