Blocking Chrome Extensions from running on my site

后端 未结 2 897
清酒与你
清酒与你 2020-12-01 19:19

As a web developer, is there any way to prevent a user\'s Chrome extensions from being applied to my site? i.e. a header, meta tag, anything? Additionally, if there is, is

2条回答
  •  不思量自难忘°
    2020-12-01 20:05

    Can't you create a Content Security Policy (CSP) and block inline javascript and only allow javascript from specific domains? You could even create a CSP in report-only mode and collect violation reports via something like https://report-uri.io/

提交回复
热议问题