secure cookie management b-o

This commit is contained in:
Olivier Legat 2022-02-25 17:20:05 +01:00
parent f594445832
commit 2764b34a4b
3 changed files with 9 additions and 2 deletions

File diff suppressed because one or more lines are too long

View file

@ -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

View file

@ -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>