Can you modify http request headers in a Safari extension?

Adam picture Adam · Jun 15, 2011 · Viewed 37.1k times · Source

I can do this in FF and IE, and I know it doesn't exist in Chrome yet. Anybody know if you can do this in a Safari plugin? I can't find anything that says one way or another in the documentation.

Answer

Adam Comerford picture Adam Comerford · May 10, 2012

The Safari "Develop" menu in advanced preferences allows you to partially customize headers (like the user agent), but it is quite limited.

However, if a particular browser or app does not allow you to alter the headers, just take it out of the equation. You can use things like Fiddler or ParosProxy (and many others) to alter the requests regardless of the application sending the request.

They also have the advantage of allowing you to make sure that you are sending the same headers regardless of the application in question and (depending on your requirements) potentially work across multiple browsers and apps without modification.