Commit 3f61718
committed
fix: prevent unrelated websites from modifying shortlinks via CSRF
Added two mitigations for this issue:
- Attach an 'X-Requested-With' header in client requests
- Make sure client POST requests have a content type of "application/json"1 parent 043936a commit 3f61718
3 files changed
+47
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments