src/dirbs/api/__init__.py
def add_security_headers(response: callable) -> callable:
    """
    Makes sure appropriate security headers are added for each API.

    Arguments:
        response: http response object
    Returns:
        response: http response with added security headers
    """
    response.headers['X-Frame-Options'] = 'DENY'
    response.headers['X-Content-Type-Options'] = 'nosniff'
    return response

    Makes sure appropriate security headers are added for each API.

    Arguments:
        response: http response object
    Returns:
        response: http response with added security headers
    
Makes sure appropriate security headers are added for each API.
Makes sure appropriate security headers are added for each API .
def add_security_headers(response: callable) -> callable:
    response.headers['X-Frame-Options'] = 'DENY'
    response.headers['X-Content-Type-Options'] = 'nosniff'
    return response
def add_security_headers ( response : callable ) -> callable : response . headers [ 'X-Frame-Options' ] = 'DENY' response . headers [ 'X-Content-Type-Options' ] = 'nosniff' return response
Makes sure appropriate security headers are added for each API.
Makes sure appropriate security headers are added for each API .
"""
    Makes sure appropriate security headers are added for each API.

    Arguments:
        response: http response object
    Returns:
        response: http response with added security headers
    """
http response with added security headers
http response with added security headers
response
response
callable
http response object
http response object