mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Don't require an auth key for the static help files. It doesn't play nicely with webkit.
This commit is contained in:
parent
ea6d97c49d
commit
b2ab35e990
@ -462,10 +462,14 @@ def create_app(app_name=None):
|
||||
@app.before_request
|
||||
def before_request():
|
||||
"""Login the default user if running in desktop mode"""
|
||||
|
||||
# Check the auth key is valid, if it's set, and we're not in server
|
||||
# mode, and it's not a help file request.
|
||||
if not config.SERVER_MODE and app.PGADMIN_KEY != '':
|
||||
if (
|
||||
(not 'key' in request.args or request.args['key'] != app.PGADMIN_KEY) and
|
||||
request.cookies.get('PGADMIN_KEY') != app.PGADMIN_KEY
|
||||
request.cookies.get('PGADMIN_KEY') != app.PGADMIN_KEY and
|
||||
request.endpoint != 'help.static'
|
||||
):
|
||||
abort(401)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user