not sure at what point you want to add headers? normally if you are using ajax then you would use the JS to add the headers and in laravel you could use a middleware to check if those exist.
Jul 21, 2018
6
Level 3
How to add Headers in laravel request
for adding security i want to add few headers
recently i added a header in ngnix config file request works but all AJAX REQUEST GAVE 419 ERROR so I remove it from ngnix config file.
is there any way to add request header in laravel directly
Please or to participate in this conversation.