Passed
Push — master ( 622bd5...daf764 )
by Mingyu
57s
created

{{cookiecutter.project_slug}}.app.hooks.request_context   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 7
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A after_request() 0 6 1
1
from flask import Response
2
3
4
def after_request(response: Response) -> Response:
5
    try:
6
        response.headers["X-Content-Type-Options"] = "nosniff"
7
        response.headers["X-Frame-Options"] = "deny"
8
    finally:
9
        return response
10