We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use a URL that contains a JSON token value and set that dynamically per-request
pm.sendRequest({ url: ['http://', pm.collectionVariables.get("baseUrl"), '/sanctum/csrf-cookie'].join(''), method: 'GET' }, function (error, response, { cookies }) { if (!error && cookies) { pm.environment.set('xsrfToken', cookies.get('XSRF-TOKEN')) pm.sendRequest({ url: ['http://', pm.collectionVariables.get("baseUrl"), '/token.json'].join(''), method: 'GET' }, function (error, response) { if (!error && response) { try { pm.collectionVariables.set('authToken', response.json().token) } catch (err) { console.error(err); } } }) } })
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Use a URL that contains a JSON token value and set that dynamically per-request
The text was updated successfully, but these errors were encountered: