From 1482c33448c37182bc2fa0fd55ed3575678fac53 Mon Sep 17 00:00:00 2001 From: shibafu Date: Thu, 6 Aug 2020 21:31:59 +0900 Subject: [PATCH] =?UTF-8?q?jQuery.ajax=E5=90=91=E3=81=91=E3=81=AECSRF=20To?= =?UTF-8?q?ken=E8=A8=AD=E5=AE=9A=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/bootstrap.ts | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/resources/assets/js/bootstrap.ts b/resources/assets/js/bootstrap.ts index 99d9e9b..fbfc914 100644 --- a/resources/assets/js/bootstrap.ts +++ b/resources/assets/js/bootstrap.ts @@ -1,17 +1,5 @@ // jQuery import './tissue'; -// Setup global request header -const token = document.head.querySelector('meta[name="csrf-token"]'); -if (!token) { - console.error('CSRF token not found: https://laravel.com/docs/csrf#csrf-x-csrf-token'); -} else { - $.ajaxSetup({ - headers: { - 'X-CSRF-TOKEN': token.content, - }, - }); -} - // Bootstrap import 'bootstrap';