Files
cloudpods/pkg/cloudcommon
Jian Qiu c557a8b230 fix(appsrv): do not honor CORS credentials for wildcard origins (#25501)
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:36 +08:00
..
2026-01-06 18:05:41 +08:00
2026-08-20 17:30:29 +08:00
2025-09-05 18:26:33 +08:00
2019-12-04 20:49:39 +08:00
2019-03-29 14:47:48 +08:00