Rewrite HTTP Headers (JSON)

Author(s):



tl;dr: All development on my Firefox add-ons has been halted.

Airing of Grievances against Mozilla:

Firefox has announced that their roadmap for the near-future is to completely deprecate the existing add-on API. Doing so will effectively make ALL current add-ons inoperable. The new API is a stripped-down version of Google Chrome's extension API; Mozilla is literally linking its own documentation to a cherry-picked selection of pages on developer.chrome.com.

Prior to that, Firefox had announced that all add-ons must be digitally signed by Mozilla. This particular policy makes Firefox feel more like Apple's App Store than FOSS. Even Android allows side-loading of .apk files, either developed locally or found in the wild; and yet Firefox is building a "walled garden". To complicate this farther, the review process for an add-on to be hosted on AMO can take upwards of a year, and is a very disorganized process. Personally, I've had very bad experiences with abrupt and unfair rejections; my more complicated add-ons have only ever been hosted on github, and they can no-longer be installed by recent releases of Firefox.

I'm currently focusing my time on Android development. If Firefox reverses some of these policies and begins behaving in a way that's more in keeping with its own mission and manifesto, then I would gladly continue to contribute my time and effort to its ecosystem. But until that happens, I'm done with Firefox.. both as a user, and as a developer.


------------------------------------------------------------



Summary


Data Structure

sample request rules data set:

[
    {
        "url" : "^.*$",
        "headers" : {
            "X-Custom-Sample-Header-01" : "Foo",
            "X-Custom-Sample-Header-02" : "Bar",
            "X-Custom-Sample-Header-03" : "Baz"
        }
    },
    {
        "url" : "^https:",
        "headers" : {
            "X-Custom-Sample-Header-01" : false,
            "X-Custom-Sample-Header-02" : false,
            "X-Custom-Sample-Header-03" : false
        },
        "stop": true
    },
    {
        "url" : "^.*$",
        "headers" : {
            "X-Custom-Sample-Header-01" : "Hello",
            "X-Custom-Sample-Header-03" : false
        }
    }
]


sample response rules data set:

[
    {
        "url" : "#(?:[^/,]+[/,])*(?:HTTP-Archive-Viewer|JSON-DataView)(?:[/,]|$)",
        "headers" : {
            "Content-Type"              : "application/json",
            "Content-Disposition"       : null,
            "Content-Security-Policy"   : null,
            "X-Content-Security-Policy" : null
        }
    }
]


notes: (general)

notes: (sample request)

notes: (sample response)

Alternate Variation



Download files:

moz-rewrite-json-1.03.1-signed.1-signed.xpi


This page is part of the LegacyCollector website.
Disclaimer: All material on this site is property of their respective owners and available under
open licenses to the best of our knowledge. If you are an author and would like anything removed,
then please write an e-mail to legacy [at] collector dot org.