didierfred / SimpleModifyHeaders

Extension for firefox and chrome to modify headers
172 stars 31 forks source link

Only sending custom header some of the time #23

Open ygreenfield opened 3 years ago

ygreenfield commented 3 years ago

Hi. Thank you so much for creating and sharing this Firefox add-on.

I just started using SimpleModifyHeaders and I'm just sending one simple header. The header is often transmitted, but almost as often the header, as far as I can tell, is not transmitted. I am checking the header on the server both in my proxy server and using tcpdump, and sometimes it's just not there.

Can you give me a clue as to why this might be? The site is reloading, not coming from cache. I see it reload on the server.

I'm using Firefox 77.0.1. The plugin is 1.6.3.

There's only one header, on all requests. Here is the configuration export:

{"format_version":"1.2","target_page":"*://*/*","headers":[{"url_contains":"","action":"add","header_name":"ntn-id","header_value":"1001","comment":"NTN User ID","apply_on":"req","status":"on"}],"debug_mode":false,"show_comments":true,"use_url_contains":false}

You have any idea? Any help would be much appreciated.

Thank you again, Yosi

didierfred commented 3 years ago

Could you test your configuration with url : https://httpbin.org/headers and see if you reproduce your problem

This web url print the content of your header

Frédéric

ygreenfield commented 3 years ago

Thanks so much for getting back to me.

On httbin, it is clearly sending the header every time.

So can you think of any reason I would not be seeing it when I sniffing the traffic on my proxy server?

My users access sites through our proxy. I'd like to shape their traffic based on this header, but I'm only seeing it inconsistently.

Thank you again and thanks for any ideas you might have.

Yosi


From: DidierFred [mailto:notifications@github.com] Sent: Sunday, December 13, 2020 11:59 AM To: didierfred/SimpleModifyHeaders Cc: ygreenfield; Author Subject: Re: [didierfred/SimpleModifyHeaders] Only sending custom header some of the time (#23)

Could you test your configuration with url : https://httpbin.org/headers and see if you reproduce your problem

This web url print the content of your header

Frédéric

— You are receiving this because you authored the thread. Reply to this email directly, view https://github.com/didierfred/SimpleModifyHeaders/issues/23#issuecomment-74 4036494 it on GitHub, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEECADG5VR5FPYKCDLBBS53SU TXGNANCNFSM4UUH7YDA . https://github.com/notifications/beacon/AEECADC7H5ZACEZR5GX5YC3SUTXGNA5CNFS M4UUH7YDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFRMRRDQ .gif

didierfred commented 3 years ago

Could you check if you see the header modified on the network panel of dev tools of firefox ( F12 ) ?

If you send directly your request to the server by-passing the proxy , do you have the same problem ?