Commit 32c7bb9
committed
fix wrong token error when saving links after metadata retrieval
- remove CSRF check from metadata endpoint to fix form token reuse
- the XSRF token is single-use: `checkToken()` validates and destroys it.
- the metadata XHR fires on page load, consuming the token rendered in the form
- subsequent form submission then fails with 403.
- the metadata endpoint is a read-only GET request, already protected against SSRF by scheme/IP/redirect validation. CSRF is unnecessary.
- fixes #22421 parent e8a6539 commit 32c7bb9
1 file changed
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
0 commit comments