https://cypress.io logo
Intercept Cypress traffic with Burpsuite
# i-need-help
b
I'm trying to intercept traffic with burpsuite using cypress, but i'm obtaining this error: "This browser was not launched through Cypress. Tests cannot run." I don't knwo how to solve this problem, some fixed that I have tried: - Use foxyproxy in firefox -> Same error - Set HTTP_Proxy and NO_PROXY variable -> Same error - Set Proxy in the test.cy.js using the function cy.request -> Same error The proxy in burp is set to 127.0.0.1:808X. Any ideas on how to fix this problem?
m
Hmm can you tell me more what steps you took. I just installed burpsuite on my machine and i am using the 12.9.0 in the proxy settings of burpsuite i have set a listener on 127.0.0.1:8065 before starting cypress i did export HTTPS_PROXY=http://127.0.0.1:8065 export HTTP_PROXY=http://127.0.0.1:8065 and then i did npx cypress open. From this point on all traffic went into burpsuite. I cannot show you screenshots now because at work environment and dont want to share links from my work. But when i'm home i will make a small video/screenshots of my work
b
Hey @busy-author-51492 were you able to get this problem resolved? 😀
b
Thank you Xavier, I completly forget to set up the HTTPS proxy, that was my fault! @best-flower-17510 yes Ronald
b
Awesome!
4 Views