I am setting up Content security policy. I have set up basic rules in report-only mode for testing.
I keep getting reports for blocked script but the source is only data:
"csp-report": {
"blocked-uri": "data",
"document-uri": "http://www.example.com/page.html",
"original-policy": "default-src http://www.example.com ...
"violated-directive": "script-src 'unsafe-inline' http://www.example.com http://www.google-analytics.com;"
}
I cannot reproduce the report even if I go to the same page with same browser type as visitor who caused this report. From CSP documentation I could not find anything about source called data.
The page http://www.example.com/page.html is mainly static html but has Google analytics script between <script> tags:
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject'...
</script>
The same script is used on other pages of my site including the frontpage. Yet only the page page.html generates these reports about blocked data.
What is this uri data that gets blocked? Is it something from my site or something external that the visitors browser tried to load?