Skip to content

Commit

Permalink
Fix requestInterceptor for 6.x - #304
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaOnLine committed Aug 18, 2020
1 parent 690a2db commit 069ee0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/views/index.blade.php
Expand Up @@ -81,9 +81,9 @@
validatorUrl: {!! isset($validatorUrl) ? '"' . $validatorUrl . '"' : 'null' !!},
oauth2RedirectUrl: "{{ route('l5-swagger.oauth2_callback') }}",
requestInterceptor: function() {
this.headers['X-CSRF-TOKEN'] = '{{ csrf_token() }}';
return this;
requestInterceptor: function(request) {
request.headers['X-CSRF-TOKEN'] = '{{ csrf_token() }}';
return request;
},
presets: [
Expand Down

0 comments on commit 069ee0d

Please sign in to comment.