Skip to content

Commit

Permalink
update protection tips
Browse files Browse the repository at this point in the history
  • Loading branch information
zendive committed Jul 31, 2023
1 parent 7188d34 commit 0b32796
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ pnpm zip # make extension.zip

- How to protect your site from this extension:
- Well, tests show that even `Content-Security-Policy: default-src 'none';` header won't prevent injection of extension content-scripts...
- Avoid assigning to `window` or `globalThis` any application object.
See also [accidental global variables and memory leaks](https://www.tutorialspoint.com/explain-in-detail-about-memory-leaks-in-javascript).
- In general, you can incapacitate console functions:
```js
for (const prop in console) {
Expand Down

0 comments on commit 0b32796

Please sign in to comment.