forked from rDrama/rDrama
dont print /csp_violations when bc of extension
parent
512c864327
commit
844c58fe90
|
@ -339,5 +339,7 @@ def donate(v):
|
||||||
@limiter.limit("10/minute;50/day")
|
@limiter.limit("10/minute;50/day")
|
||||||
def csp_violations():
|
def csp_violations():
|
||||||
content = request.get_json(force=True)
|
content = request.get_json(force=True)
|
||||||
print(json.dumps(content, indent=4, sort_keys=True), flush=True)
|
content = str(json.dumps(content, indent=4, sort_keys=True), flush=True)
|
||||||
|
if f'"source-file": "{SITE_FULL}' in content:
|
||||||
|
print(content)
|
||||||
return ''
|
return ''
|
||||||
|
|
Loading…
Reference in New Issue