secure cookie management b-o
This commit is contained in:
parent
f594445832
commit
2764b34a4b
3 changed files with 9 additions and 2 deletions
2
public/b-o/js/app.js
vendored
2
public/b-o/js/app.js
vendored
File diff suppressed because one or more lines are too long
6
resources/js/bootstrap.js
vendored
6
resources/js/bootstrap.js
vendored
|
|
@ -17,7 +17,11 @@ window.Popper = Popper;
|
|||
window.tippy = tippy;
|
||||
window.createSingleton = createSingleton;
|
||||
|
||||
window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
//window.axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
|
||||
window.axios.defaults.headers.common = {
|
||||
'X-Requested-With': 'XMLHttpRequest',
|
||||
'X-CSRF-TOKEN' : document.querySelector('meta[name="csrf-token"]').getAttribute('content')
|
||||
};
|
||||
|
||||
/**
|
||||
* Echo exposes an expressive API for subscribing to channels and listening
|
||||
|
|
|
|||
|
|
@ -3,6 +3,9 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<!-- CSRF Token -->
|
||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||
|
||||
<title>Tableau de bord</title>
|
||||
|
||||
<script src="https://cdn.ckeditor.com/ckeditor5/23.0.0/classic/ckeditor.js"></script>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue