mirror of
https://github.com/searxng/searxng.git
synced 2025-07-19 03:09:25 +02:00
[enh] reset default preferences
This commit is contained in:
parent
54f1bc0425
commit
1184f45ca5
4 changed files with 13 additions and 2 deletions
|
@ -715,6 +715,14 @@ def favicon():
|
|||
mimetype='image/vnd.microsoft.icon')
|
||||
|
||||
|
||||
@app.route('/clear_cookies')
|
||||
def clear_cookies():
|
||||
resp = make_response(redirect(url_for('index')))
|
||||
for cookie_name in request.cookies:
|
||||
resp.delete_cookie(cookie_name)
|
||||
return resp
|
||||
|
||||
|
||||
def run():
|
||||
app.run(
|
||||
debug=settings['server']['debug'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue