Firefox fails to install extension for local search service

It seems that firefox does not allow local hosts beside (localhost) in search URL.

Extension manifest.json:


  "manifest_version": 2,
  "name": "Wise query lookup",
  "description": "Adds a lookup for Wise query",
  "version": "1.0",
  "browser_specific_settings": {
    "gecko": {
      "strict_min_version": "55"
  "chrome_settings_overrides": {
    "search_provider": {
      "name": "Wise Query",
      "search_url": "http://wise/view.php?id={searchTerms}",
      "keyword": "wise",
      "favicon_url": "",
      "is_default": false,
      "encoding": "UTF-8"


Debug Error:

There was an error during the temporary add-on installation.

Error details

Extension is invalid

Reading manifest: Error processing chrome_settings_overrides.search_provider.search_url: String "http://wise/view.php?id={searchTerms}" must match /^(https:\/\/|http:\/\/(localhost|127\.0\.0\.1|\[::1\])(:\d*)?(\/|$)).*$/

What is a “local hosts”?
The search_url is not a valid link, that’s why it fails.
Could you clarify what exactly are you trying to do?

Actually the regexp only allows the https: protocol in general and allows http: just for known local URLs. This is probably meant as a security precaution.

As in my example wise is the hostname of the server.

I work for company that have many private web server systems. As their integration is weak.

I want to make multiple search extensions, so I just select something from one system page and search for related info in another system.

Yeah, it looks like you mention.

Do you know any way to disable it? and allow any hostname for search_url.

Thank you friends.

I was trying to make extension similar to discogs-search. Found another way that works for me, same as this example menu-search which uses Search API.