Cypress 9.6.0 - cy.request returns ArrayBuffer inside response's body #21269
Unanswered
Mariusz071
asked this question in
Questions and Help
Replies: 1 comment
-
Try this const token = window.sessionStorage.getItem('x-csrf')
cy.request({
method: 'POST',
url: `${Cypress.env('backendUrl')}/some/path`,
body: {
name: 'xyz',
id: '123-123',
},
headers: {
'X-CSRF-Token': token,
'Access-Control-Allow-Credentials': true,
},
}).its('body').then(console.log) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello.
As per title, I've got no clue why it might be happening 😐
Here is how my
cy.request
look like:Thanks for help im advance 🙂
Beta Was this translation helpful? Give feedback.
All reactions