Google analytics.js and Content Security Policy

后端 未结 3 1345
Happy的楠姐
Happy的楠姐 2021-02-03 22:56

I have a web app using the default html5boilerplate Content Security Policy.

However, we have the new Google analytics.js snippet on the page, which is being blocked by

3条回答
  •  -上瘾入骨i
    2021-02-03 23:47

    your .htaccess solution should be all correct.

    why should you brake the (clientside) asynchronous nature of it ?

    in the browser console you will see which requests to which hosts are blocked, if there are any blocked request from gugl while surfing the page you can add the hostname to your policy-setting

提交回复
热议问题