Пример #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
Пример #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
Пример #3
0
def shutdown_session(exception=None):
    """Clear the session."""
    session_db.remove()
Пример #4
0
def after_request(response):
    session_db.remove()
    return response
Пример #5
0
def shutdown_session(exception=None):
    session_db.remove()
Пример #6
0
def after_request(response):
    session_db.remove()
    add_sec_headers(response)
    add_csp(response)
    return response
Пример #7
0
def shutdown_session(exception=None):
    session_db.remove()
Пример #8
0
def after_request(response):
    session_db.remove()
    return response
Пример #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
Пример #10
0
def shutdown_session(exception=None):
    """Clear the session."""
    session_db.remove()
Пример #11
0
def after_request(response):
    session_db.remove()
    add_sec_headers(response)
    add_csp(response)
    return response