Firefox - The add-on could not be installed because it appears to be corrupt

206 views Asked by At

I am trying to create an add-on for firefox which would bypass the server side authentication while logging into a website. However, after creating the zipped .xpi file (containing manifest.json and webrequest.js files), when I try to add it on firefox, I get the error on firefox : The add-on could not be installed because it appears to be corrupt . I have set 'xpinstall.signatures.required' as false on firefox about:config page.attached is the zipped .xpi file created

Kindly advise on what could be the possible issue here

1

There are 1 answers

2
erosman On

The file you have uploaded has the following content:

FFExtn.js
FFExtn.json

There isnt any manifest.json.

Inside FFExtn.json:

{
    "name": "Webrequest API",
    "version": "1.0",
    "description": "Extension to handle Authentication window",
    "permissions": [
        "webRequest",
        "webRequestBlocking",
        "<all_urls>"
    ],
    "background": {
        "scripts": ["webrequest.js"]
    },
    "manifest_version": 2
}

There isnt any webrequest.js.

Change:
FFExtn.json -> manifest.json
webrequest.js -> FFExtn.js