Esempio n. 1
0
def after_request(response):
    """Remove/Add a couple of things after the request."""
    session_db.remove()
    add_sec_headers(response)
    add_csp(response)
    ab_init(response)
    return response
Esempio n. 2
0
def after_request(response):
    """Remove/Add a couple of things after the request."""
    session_db.remove()
    add_sec_headers(response)
    add_csp(response)
    if app.config['AB_EXPERIMENTS']:
        ab_init(response)
    return response
Esempio n. 3
0
def shutdown_session(exception=None):
    """Clear the session."""
    session_db.remove()
Esempio n. 4
0
def after_request(response):
    session_db.remove()
    return response
Esempio n. 5
0
def shutdown_session(exception=None):
    session_db.remove()
Esempio n. 6
0
def after_request(response):
    session_db.remove()
    add_sec_headers(response)
    add_csp(response)
    return response
Esempio n. 7
0
def shutdown_session(exception=None):
    session_db.remove()
Esempio n. 8
0
def after_request(response):
    session_db.remove()
    return response
Esempio n. 9
0
def after_request(response):
    """Remove/Add a couple of things after the request."""
    session_db.remove()
    add_sec_headers(response)
    add_csp(response)
    return response
Esempio n. 10
0
def shutdown_session(exception=None):
    """Clear the session."""
    session_db.remove()
Esempio n. 11
0
def after_request(response):
    session_db.remove()
    add_sec_headers(response)
    add_csp(response)
    return response