Skip to content

Commit

Permalink
fix csrf error on import_dashboards (#2672)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alanna Scott authored Apr 25, 2017
1 parent 03c42b5 commit e9ed416
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions superset/templates/superset/import_dashboards.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
<title>Import the dashboards.</title>
<h1>Import the dashboards.</h1>
<form method=post enctype=multipart/form-data>
<input
type="hidden"
name="csrf_token"
id="csrf_token"
value="{{ csrf_token() if csrf_token else '' }}"
>
<p><input type=file name=file>
<input type=submit value=Upload>
</p>
Expand Down

0 comments on commit e9ed416

Please sign in to comment.