Commit 55f4354924c2b1ef651f60911f0166763c756e7a

Authored by Antonio Terceiro
2 parents 32f1ee4b a2bd5915

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 579 $.ajaxSetup({
580 580 cache: false,
581 581 headers: {
582   - 'X-CSRF-Token': $.cookie("_noosfero_.XSRF-TOKEN")
  582 + 'X-XSRF-TOKEN': $.cookie("_noosfero_.XSRF-TOKEN")
583 583 }
584 584 });
585 585  
... ...