-
-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Labels
Description
https://developers.google.com/web/updates/2018/09/reportingapi
Example
- Make some web server return
Report-Toheader
Report-To { "group": "reporting-1", "max_age": 10886400, "endpoints": [{ "url": "https://example.org/webhook2telegram/api/inlets/reporting?token=some-recipient-token" }] }
- Make webhook2telegram accept JSON like this
[{
"type": "csp",
"age": 10,
"url": "https://example.com/vulnerable-page/",
"user_agent": "Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0",
"body": {
"blocked": "https://evil.com/evil.js",
"directive": "script-src",
"policy": "script-src 'self'; object-src 'none'",
"status": 200,
"referrer": "https://evil.com/"
}
}]Reactions are currently unavailable