dayuan.jiang
55a32af76a
fix(security): keep EdgeOne cookies and the access code on this site
...
Two issues from before the provider refactor, found by its review.
The redirect guard dropped Authorization, cookies and the providers' key
headers when a redirect left the origin, but kept x-access-code, this site's
own access code; it is dropped too now.
edgeOneEndpoint took the request's Origin header as the site's address.
Behind a proxy the request URL is the internal one and Origin is the site's,
so Origin still wins, but only when its host matches Host or
X-Forwarded-Host; a request carrying another site's Origin now gets the
request's own origin, so the EdgeOne cookies and the access code never travel
to that site.
2026-10-12 21:17:51 +09:00
..
2026-10-12 21:17:51 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 21:17:51 +09:00
2026-10-05 22:39:32 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:35:55 +09:00
2026-10-05 22:39:32 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:35:55 +09:00
2026-10-06 09:37:05 +09:00
2026-10-12 12:35:55 +09:00
2026-10-05 22:39:32 +09:00
2026-10-11 21:27:11 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:58:52 +09:00
2026-10-12 21:17:51 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:58:52 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:35:55 +09:00
2026-10-05 22:39:32 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:35:55 +09:00
2026-10-10 23:30:51 +09:00
2026-10-12 12:35:55 +09:00
2026-01-20 20:52:04 +09:00
2026-10-12 12:35:55 +09:00
2026-10-06 09:49:48 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:35:55 +09:00
2026-10-11 21:27:11 +09:00
2026-10-11 21:27:11 +09:00
2026-10-12 12:35:55 +09:00
2026-10-11 21:27:11 +09:00
2026-10-11 21:27:11 +09:00
2026-10-05 22:39:32 +09:00
2026-10-12 12:35:55 +09:00
2026-10-05 22:39:32 +09:00
2026-10-05 22:39:32 +09:00
2026-10-05 22:39:32 +09:00
2026-10-12 21:17:51 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 21:17:51 +09:00
2026-10-12 21:17:51 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 21:17:51 +09:00
2026-10-12 12:35:55 +09:00
2026-10-08 16:20:15 +09:00
2026-10-12 21:17:51 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:35:55 +09:00
2026-10-08 16:20:15 +09:00
2026-10-05 22:39:32 +09:00
2026-10-12 12:35:55 +09:00
2026-10-10 23:30:51 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:35:55 +09:00
2026-10-12 12:58:52 +09:00
2026-10-08 16:20:15 +09:00
2026-10-12 21:17:51 +09:00
2026-10-11 21:27:11 +09:00