diff options
author | NavaL <ayoyo@thoughtworks.com> | 2016-02-25 17:38:07 +0100 |
---|---|---|
committer | NavaL <ayoyo@thoughtworks.com> | 2016-02-25 17:38:07 +0100 |
commit | dbb434b56e6b161a3b851ae6a81f96dff14a29da (patch) | |
tree | c0b8b53880a386b36bd48ddab3eafb6fe21b083d /web-ui/app | |
parent | 1e6518dd6577bf0dbec359fd4c1aec12ed6f2a64 (diff) |
serving the client directly, as the current dependency on proxy strips out xsrf cookies
-fixing functional test
Issue #612
Diffstat (limited to 'web-ui/app')
-rw-r--r-- | web-ui/app/js/page/default.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web-ui/app/js/page/default.js b/web-ui/app/js/page/default.js index e33ec723..19b28354 100644 --- a/web-ui/app/js/page/default.js +++ b/web-ui/app/js/page/default.js @@ -51,6 +51,7 @@ define( 'mail_view/data/feedback_sender', 'page/version', 'page/unread_count_title', + 'helpers/browser' ], function ( @@ -88,7 +89,8 @@ define( feedbackBox, feedbackSender, version, - unreadCountTitle) { + unreadCountTitle, + browser) { 'use strict'; function initialize(path) { @@ -129,6 +131,8 @@ define( feedbackSender.attachTo(document); unreadCountTitle.attachTo(document); + + $.ajaxSetup({headers: {'X-XSRF-TOKEN': browser.getCookie('XSRF-TOKEN')}}); } return initialize; |