Can you modify http request headers in a Safari extension?

Viewed 45415

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.

2 Answers

Safari has added extension support but its APIs don't let you have granular level control over Request & Response as compared to Chrome/Firefox/Edge.

To have granular level control over your Request and Response, you need setup a system wide proxy instead. Requestly Desktop App automatically does this for you and on top of that, you can do various types of modifications too like:

  • Modify Request/Response Headers
  • Redirect URLs
  • Modify Response
  • Delay Network request
  • Insert Custom Scripts
  • Change User-Agent

Here's an article about header modification using requestly https://requestly.io/feature/modify-request-response-headers/

Disclaimer: I work at Requestly

Related