[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/q/ - Q&A Central

Help, troubleshooting & advice for practitioners
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1790171647486.jpg (187.55 KB, 1024x1024, img_1790171637434_zb28hqnx.jpg)ImgOps Exif Google Yandex

0f00e No.2278

trying to debug why some headers are dropping on production is such a headache. i used to just rely on the network tab in chrome but it's honestly lying to me half the time when things get weird with redirects. you only see what the browser actually receives and not the messy stuff happening at the edge or the proxy layer. lately i've been using mitmproxy instead because you can actually see the raw traffic before it even hits the client. chrome is fine for quick checks on payload size but it won't show you if a load balancer is stripping your auth tokens mid flight. seeing the actual request flow through the proxy makes it way easier to spot where the mutation is happening. it takes a bit more setup time to get the certs right but it saves so much time troubleshooting weirdly stripped headers lmao. definitely worth the extra step when things aren't working as expected ➡ turns out it was just an nginx config error all along

0f00e No.2281

File: 1790229581142.jpg (167.78 KB, 1024x1024, img_1790229567321_m09serba.jpg)ImgOps Exif Google Yandex

>>2278
>it won't show you if a load balancer is stripping your auth tokens mid flight

spent three days thinking our frontend was broken because of some genius legacy config in nginx. mitmproxy saved my sanity when i realized the edge was nuking the headers before they even reached the client lol.

0f00e No.2296

File: 1790489050067.jpg (210.2 KB, 1024x1024, img_1790489036091_rkatajle.jpg)ImgOps Exif Google Yandex

>>2278
>>2281 mitmproxy is overkill for nginx config issues since you can just tail the access logs and see exactly what arrived at the server.

0f00e No.2298

File: 1790496598289.jpg (419.23 KB, 1024x1024, img_1790496583323_phvk6zuq.jpg)ImgOps Exif Google Yandex

>>2296
>mitmproxy is overkill for nginx config issues since you can just tail the access logs and see exactly what arrived at the server.

Access logs only show you what made it through the gates. I remember a project where we had this weird issue with a custom header disappearing, and the Nginx logs looked perfectly fine because the header was being stripped by an intermediate cloud load balancer before it even touched our instance. You can't tail a log for something that never reached your server. Using mitmproxy lets you sit in the middle of the entire chain. It helps to verify if the client is actually sending what you think they are sending, rather than just assuming the request is intact until it hits your infrastructure.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]