Menu

Fix CORS Errors on a MinIO Bucket: Community vs AIStor, and How to Test the Preflight with curl
📰

Fix CORS Errors on a MinIO Bucket: Community vs AIStor, and How to Test the Preflight with curl

DEV Community: cloud·Opndrive·9 days ago
#3ktSESri
#devtocloud#devto#dev#cors#minio
Long article (2379 words) — no AI summary yet.
Reading 0:00
15s threshold

Your browser app fails on its first request to the bucket. Firefox reports Reason: CORS header 'Access-Control-Allow-Origin' missing ( MDN ); Chromium’s internal name for it is MissingAllowOriginHeader ( Chromium source ).

A MinIO CORS error is harder to fix than the same error on Amazon S3, because where CORS lives depends on which MinIO you run: an S3-style bucket CORS document stores nothing on community MinIO ( dummy-handlers.go ). Find your build, set CORS at the layer it supports, then prove it with curl.

Nothing here was run against a live server. The community MinIO responses below are what MinIO’s source code says you should see, read from the archived minio/minio repository.

In this post:

Where MinIO sets CORS depends on the build

Which browser error do you have?

Find out which MinIO you are running

Fix it on community MinIO

Fix it on AIStor

Test the preflight with curl

Behind a reverse proxy

Presigned URLs and CORS

Where MinIO sets CORS depends on the build

Community MinIO has no…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.