Commit b0154b1
committed
feat(images): add referrerpolicy attribute for privacy protection
Inject referrerpolicy="no-referrer" to image tags in:
- refactor-content.html: post content images
- sidebar.html: avatar image
Prevents Referer header leakage and enables displaying images
from platforms with referrer-based hotlink protection.1 parent e50b64d commit b0154b1
2 files changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
164 | 167 | | |
165 | 168 | | |
166 | 169 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments