Skip to content

Commit

Permalink
Fix requestInterceptor for 6.x (#308)
Browse files Browse the repository at this point in the history
Co-authored-by: Darius Matulionis <darius.matulionis@supermetrics.com>

Fix requestInterceptor for 6.x - #304
  • Loading branch information
DarkaOnLine authored Aug 18, 2020
1 parent 690a2db commit 496992e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/views/index.blade.php
Original file line number Diff line number Diff line change
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 496992e

Please sign in to comment.