[GH-ISSUE #588] [BUG] [Firefox] Can't add search engine #374

Closed
opened 2026-02-25 20:35:35 +03:00 by kerem · 6 comments
Owner

Originally created by @LeonMusCoden on GitHub (Dec 21, 2021).
Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/588

Describe the bug
My Whoogle instance is running behind a nginx reverse proxy. When trying to add the search engine to Firefox, I get the following error:
Firefox could not download the search plugin from: https://search.domain.xyz/opensearch.xml
The file is reachable when searching for https://search.domain.xyz/opensearch.xml
The search itself works perfectly.
Root URL is set to: https://search.domain.xyz/

To Reproduce
Steps to reproduce the behavior:

  1. Go to root page
  2. Click on the add button
    Screenshot from 2021-12-21 21-11-19
  3. See error

Deployment Method

  • Heroku (one-click deploy)
  • Docker
  • run executable
  • pip/pipx
  • Other: [describe setup]

Version of Whoogle Search

  • Latest build from [source] (i.e. GitHub, Docker Hub, pip, etc)
  • Version [version number]
  • Not sure

Desktop (please complete the following information):

  • OS: Ubuntu
  • Browser: Firefox
  • Version: Latest (95.0.1)
Originally created by @LeonMusCoden on GitHub (Dec 21, 2021). Original GitHub issue: https://github.com/benbusby/whoogle-search/issues/588 **Describe the bug** My Whoogle instance is running behind a nginx reverse proxy. When trying to add the search engine to Firefox, I get the following error: `Firefox could not download the search plugin from: https://search.domain.xyz/opensearch.xml ` The file is reachable when searching for https://search.domain.xyz/opensearch.xml The search itself works perfectly. Root URL is set to: https://search.domain.xyz/ **To Reproduce** Steps to reproduce the behavior: 1. Go to root page 2. Click on the add button ![Screenshot from 2021-12-21 21-11-19](https://user-images.githubusercontent.com/53626026/146992520-55e84829-82d9-4163-a6a8-04c287d50ad7.png) 3. See error **Deployment Method** - [ ] Heroku (one-click deploy) - [X] Docker - [ ] `run` executable - [ ] pip/pipx - [ ] Other: [describe setup] **Version of Whoogle Search** - [X] Latest build from [source] (i.e. GitHub, Docker Hub, pip, etc) - [ ] Version [version number] - [ ] Not sure **Desktop (please complete the following information):** - OS: Ubuntu - Browser: Firefox - Version: Latest (95.0.1)
kerem 2026-02-25 20:35:35 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@DEvmIb commented on GitHub (Jan 8, 2022):

same problem. seems to be an problem with the session redirect.

< HTTP/2 307
< date: Sat, 08 Jan 2022 10:39:50 GMT
< content-type: text/html; charset=utf-8
< content-length: 413
< location: http://whoogle/session/34ca0683-e14e-4670-8eed-280d6d28988e?follow=http%3A%2F%2Fwhoogle%2Fopensearch.xml
< server: waitress
< set-cookie: session=c5944a45-1277-47ac-aaab-db47685b2f3f; Expires=Sun, 08-Jan-2023 10:39:50 GMT; HttpOnly; Path=/; SameSite=Strict
< x-content-type-options: nosniff
< x-frame-options: DENY
< x-robots-tag: noindex, nofollow, noarchive, nosnippet, noimageindex, notranslate

<!-- gh-comment-id:1007952821 --> @DEvmIb commented on GitHub (Jan 8, 2022): same problem. seems to be an problem with the session redirect. < HTTP/2 307 < date: Sat, 08 Jan 2022 10:39:50 GMT < content-type: text/html; charset=utf-8 < content-length: 413 < location: http://whoogle/session/34ca0683-e14e-4670-8eed-280d6d28988e?follow=http%3A%2F%2Fwhoogle%2Fopensearch.xml < server: waitress < set-cookie: session=c5944a45-1277-47ac-aaab-db47685b2f3f; Expires=Sun, 08-Jan-2023 10:39:50 GMT; HttpOnly; Path=/; SameSite=Strict < x-content-type-options: nosniff < x-frame-options: DENY < x-robots-tag: noindex, nofollow, noarchive, nosnippet, noimageindex, notranslate
Author
Owner

@DEvmIb commented on GitHub (Jan 8, 2022):

my solution until fix is to serv static file on nginx

location /opensearch.xml { alias /data/opensearch_whoogle.xml; }

<!-- gh-comment-id:1007955860 --> @DEvmIb commented on GitHub (Jan 8, 2022): my solution until fix is to serv static file on nginx `location /opensearch.xml { alias /data/opensearch_whoogle.xml; }`
Author
Owner

@DUOLabs333 commented on GitHub (Jan 11, 2022):

Weird -- it works for me (though I'm on 88). Can you post your nginx config?

<!-- gh-comment-id:1010163319 --> @DUOLabs333 commented on GitHub (Jan 11, 2022): Weird -- it works for me (though I'm on 88). Can you post your nginx config?
Author
Owner

@benbusby commented on GitHub (Jan 11, 2022):

The opensearch file route is now excluded from session validation, so this should be fixed now.

<!-- gh-comment-id:1010213749 --> @benbusby commented on GitHub (Jan 11, 2022): The opensearch file route is now excluded from session validation, so this should be fixed now.
Author
Owner

@LeonMusCoden commented on GitHub (Jan 16, 2022):

I built the latest docker version but it does not work. I still get the same error when trying to add the search engine.
Edit: It suddenly worked! I'm confused but happy

<!-- gh-comment-id:1013919927 --> @LeonMusCoden commented on GitHub (Jan 16, 2022): I built the latest docker version but it does not work. I still get the same error when trying to add the search engine. Edit: It suddenly worked! I'm confused but happy
Author
Owner

@anarkia47 commented on GitHub (May 8, 2023):

I currently also have this issue.

Found this workaround,

https://old.reddit.com/r/firefox/comments/1246l41/is_there_a_way_to_make_firefox_recognize_rlinks/jdy0eq7/?context=999

<!-- gh-comment-id:1538553510 --> @anarkia47 commented on GitHub (May 8, 2023): I currently also have this issue. Found this workaround, https://old.reddit.com/r/firefox/comments/1246l41/is_there_a_way_to_make_firefox_recognize_rlinks/jdy0eq7/?context=999
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/whoogle-search#374
No description provided.