comment /csp_violations for now

pull/110/head
Aevann 2023-02-02 21:24:51 +02:00
parent 26e74411fd
commit c7e565214e
1 changed files with 9 additions and 9 deletions

View File

@ -356,12 +356,12 @@ def donate(v):
return render_template(f'donate_{SITE_NAME}.html', v=v) return render_template(f'donate_{SITE_NAME}.html', v=v)
@app.post('/csp_violations') # @app.post('/csp_violations')
@limiter.limit("10/minute;50/day") # @limiter.limit("10/minute;50/day")
def csp_violations(): # def csp_violations():
content = request.get_json(force=True)['csp-report'] # content = request.get_json(force=True)['csp-report']
print('--------', flush=True) # print('--------', flush=True)
for k, val in content.items(): # for k, val in content.items():
print(f"{k}: {val}", flush=True) # print(f"{k}: {val}", flush=True)
print('--------', flush=True) # print('--------', flush=True)
return '' # return ''