Remove auth req for accessing opensearch

Requiring authentication for accessing the opensearch template prevents
the browser from accessing the file when adding as a default search
engine. This removes the authentication requirement from the opensearch
route, which should never provide any sensitive information anyways.
This commit is contained in:
Ben Busby 2021-02-26 11:42:42 -05:00
parent b3ae0b7594
commit 08379efa26
No known key found for this signature in database
GPG Key ID: 3B08611DF6E62ED2

View File

@ -136,7 +136,6 @@ def index():
@app.route('/opensearch.xml', methods=['GET']) @app.route('/opensearch.xml', methods=['GET'])
@auth_required
def opensearch(): def opensearch():
opensearch_url = g.app_location opensearch_url = g.app_location
if opensearch_url.endswith('/'): if opensearch_url.endswith('/'):