Level 3
I'm having the same issue. Were you able to figure this out? Thanks.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
So i didnt change any of the JS. and i dont remember changing anything with CSRF.. But now anytime i load any page using Vue I get this error:
TypeError: undefined is not an object (evaluating 'request.headers.set') exports App.js:35152
The exports function has this...
module.exports = function (request, next) { if (Cookies.get('XSRF-TOKEN') !== undefined) { request.headers.set('X-XSRF-TOKEN', Cookies.get('XSRF-TOKEN')); }
Any help is appreciated, im sure its simple, but ive been staring at it too long. This worked before i upgraded to spark 2.0.
Please or to participate in this conversation.