If you're making HTTP requests with JavaScript's Fetch API to web routes in Laravel, you'll need to pass a CSRF token rather than just exclude those routes from CSRF protection.
If you need to copy text to the clipboard with JavaScript, Alpine.js makes this super easy with the help of a simple plugin.