modify /csp_violations

pull/110/head
Aevann 2023-02-02 21:33:22 +02:00
parent c5634cac78
commit 38fe32703e
1 changed files with 6 additions and 4 deletions

View File

@ -360,8 +360,10 @@ def donate(v):
# @limiter.limit("10/minute;50/day")
# def csp_violations():
# content = request.get_json(force=True)['csp-report']
# print('--------', flush=True)
# for k, val in content.items():
# print(f"{k}: {val}", flush=True)
# print('--------', flush=True)
# if content.get('source-file').startswith(SITE_FULL):
# print('--------', flush=True)
# for k, val in content.items():
# if k != 'original-policy':
# print(f"{k}: {val}", flush=True)
# print('--------', flush=True)
# return ''