Relative Content

Tag Archive for laravelcookiesnext.js13x-xsrf-token

Unable to get Cookie in nextjs that is set by laravel api in my browser?

I have a Next.js application where I am trying to set up Axios to include the CSRF token automatically in all non-GET requests. I have written the following code to retrieve the XSRF-TOKEN from cookies and set it in the request headers. However, I’m facing issues with retrieving.I am Calling api that set Cookies in my browser