is csrf token needs to be connected with session code example
Example 1: csrf token method
<meta name="csrf-token" content="{{ csrf_token() }}">
Example 2: csrf token method
window.location.origin
<meta name="csrf-token" content="{{ csrf_token() }}">
window.location.origin