Skip to content

Instantly share code, notes, and snippets.

View LukasCCB's full-sized avatar
🏠
Working from home

Skull LukasCCB

🏠
Working from home
View GitHub Profile
pm.sendRequest({
url: pm.environment.get('APP_URL') + 'sanctum/csrf-cookie',
method: 'GET'
}, function (error, response, { cookies }) {
if (!error) {
pm.environment.set('XSRF_TOKEN', cookies.get('XSRF-TOKEN'))
}
})