Exclude opensearch route from session validation

Fixes #588
main
Ben Busby 2022-01-11 10:50:35 -07:00
parent 31f4c00aee
commit ded787547a
No known key found for this signature in database
GPG Key ID: B9B7231E01D924A1
1 changed files with 2 additions and 1 deletions

View File

@ -119,7 +119,8 @@ def before_request_func():
# Skip checking for session on any searches that don't # Skip checking for session on any searches that don't
# require a valid session # require a valid session
if (not Endpoint.autocomplete.in_path(request.path) and if (not Endpoint.autocomplete.in_path(request.path) and
not Endpoint.healthz.in_path(request.path)): not Endpoint.healthz.in_path(request.path) and
not Endpoint.opensearch.in_path(request.path)):
return redirect(url_for( return redirect(url_for(
'session_check', 'session_check',
session_id=session['uuid'], session_id=session['uuid'],