Created
February 8, 2026 13:59
-
-
Save vanaf1979/8b880ed6f1845f5bfeb3d1727ac092f4 to your computer and use it in GitHub Desktop.
Fetch laravel headers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| headers: { | |
| 'Content-Type': 'application/json', | |
| 'Accept': 'application/json', | |
| 'X-CSRF-TOKEN': document.querySelector('meta[name="csrf-token"]').getAttribute('content') | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment