diff --git a/searx/settings.yml b/searx/settings.yml index 81025d653..7b62d2a51 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -62,7 +62,7 @@ search: # remove format to deny access, use lower case. # formats: [html, csv, json, rss] formats: - - html + - json server: # If you change port, bind_address or base_url don't forget to rebuild diff --git a/searx/webapp.py b/searx/webapp.py index d9ca3941c..130eba74b 100755 --- a/searx/webapp.py +++ b/searx/webapp.py @@ -658,8 +658,8 @@ def search(): if output_format not in OUTPUT_FORMATS: output_format = 'html' - if output_format not in settings['search']['formats']: - flask.abort(403) + # if output_format not in settings['search']['formats']: + # flask.abort(403) # check if there is query (not None and not an empty string) if not request.form.get('q'):