Files
cloudpods/pkg/appsrv
Jian Qiu 92193c8142 fix(appsrv): do not honor CORS credentials for wildcard origins (#25516)
With cors_hosts unset (the default), the CORS middleware allowed all
origins and echoed the request origin together with
Access-Control-Allow-Credentials, so any website could make
authenticated cross-origin requests against the API with the user's
cookies.

Credentials are now only honored for explicitly listed origins:
with an empty or wildcard origin allowlist the middleware responds
with Access-Control-Allow-Origin: * and no credentials header.

Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
Co-authored-by: Claude <noreply@anthropic.com>
2026-09-03 23:53:19 +08:00
..
2023-01-14 10:22:54 +08:00
2019-03-29 14:47:48 +08:00
2019-10-28 06:22:17 +00:00
2025-09-05 18:26:42 +08:00
2025-09-05 18:26:42 +08:00
2020-06-17 10:52:14 +08:00
2025-09-05 18:26:42 +08:00
2025-09-05 18:26:42 +08:00