[Git][noosfero/noosfero][master] 2 commits: Set correct header for csrf token
Antonio Terceiro
gitlab at mg.gitlab.com
Thu Jan 28 16:43:34 BRST 2016
Antonio Terceiro pushed to branch master at Noosfero / noosfero
Commits:
a2bd5915 by Victor Costa at 2016-01-28T15:25:06-03:00
Set correct header for csrf token
- - - - -
55f43549 by Antonio Terceiro at 2016-01-28T18:43:14+00:00
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
- - - - -
1 changed file:
- public/javascripts/application.js
Changes:
=====================================
public/javascripts/application.js
=====================================
--- a/public/javascripts/application.js
+++ b/public/javascripts/application.js
@@ -579,7 +579,7 @@ jQuery(function($) {
$.ajaxSetup({
cache: false,
headers: {
- 'X-CSRF-Token': $.cookie("_noosfero_.XSRF-TOKEN")
+ 'X-XSRF-TOKEN': $.cookie("_noosfero_.XSRF-TOKEN")
}
});
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/32f1ee4be01e04ffd485022bbf3a420ded73192d...55f4354924c2b1ef651f60911f0166763c756e7a
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20160128/73da49d1/attachment.html>
More information about the Noosfero-dev
mailing list