Send Network Requests with Authorization Headers in an Intercepted Request with Cypress

InstructorFilip Hric

Share this video with your friends

Send Tweet

Server may respond differently when providing a response to a logged in user. Usually, a user is identified when an authorization header is sent with the request. With .intercept(), we can dynamically add a header to a request and skip the login process. Server will provide the same response as it would when a user would go through login process.