Commit 55f4354924c2b1ef651f60911f0166763c756e7a
Exists in
staging
and in
37 other branches
Merge branch 'fix_csrf' into 'master'
Set correct header for csrf token The header setted from application.js has to be equal to the key used in verified_request? See merge request !778
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
public/javascripts/application.js
@@ -579,7 +579,7 @@ jQuery(function($) { | @@ -579,7 +579,7 @@ jQuery(function($) { | ||
579 | $.ajaxSetup({ | 579 | $.ajaxSetup({ |
580 | cache: false, | 580 | cache: false, |
581 | headers: { | 581 | headers: { |
582 | - 'X-CSRF-Token': $.cookie("_noosfero_.XSRF-TOKEN") | 582 | + 'X-XSRF-TOKEN': $.cookie("_noosfero_.XSRF-TOKEN") |
583 | } | 583 | } |
584 | }); | 584 | }); |
585 | 585 |