mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-21 00:24:07 +08:00
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>