mirror of
https://github.com/versity/versitygw.git
synced 2026-05-13 23:41:28 +00:00
The PATCH /:bucket/create admin route was missing middlewares.ApplyDefaultCORS, while every other admin PATCH route applies it. The OPTIONS preflight handler already sets CORS headers, so browsers pass preflight but block the actual response for lacking Access-Control-Allow-Origin. This caused the WebUI bucket-creation flow to fail with ERR_FAILED even though the server returned 201. Fixes #2105. Introduced in #1739 when the endpoint was added. Co-Authored-By: Claude <noreply@anthropic.com>