Update Angular CSRF handling

This commit is contained in:
Matt-Yorkley
2021-01-10 00:27:17 +00:00
parent f179214920
commit ea9ebc8a33
9 changed files with 10 additions and 9 deletions

View File

@@ -1,8 +1,4 @@
angular.module('admin.orderCycles', ['ngTagsInput', 'admin.indexUtils', 'admin.enterprises'])
.config ($httpProvider) ->
$httpProvider.defaults.headers.common['X-CSRF-Token'] = $('meta[name=csrf-token]').attr('content')
.directive 'datetimepicker', ($timeout, $parse) ->
require: "ngModel"
link: (scope, element, attrs, ngModel) ->