You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whatever I put in the MINIO_API_CORS_ALLOW_ORIGIN (as documented here), I cannot reach my minio server (ran on a docker container on my local machine) from my web app.
Expected Behavior
Using its docker image, Minio server requests from a web browser should work if the appropriate MINIO_API_CORS_ALLOW_ORIGIN environment variable is set on the docker container.
Current Behavior
Here is the docker-compose.yml configuration I am using or the minio image:
Despite what I believe is a correct configuration, here are the responses from PUT requests to minio from my web app:
OPTIONS localhost:9000 CORS Missing Allow Origin
PUT localhost:9000 NS_ERROR_DOM_BAD_URI
I believe this happens because my "Allow Origin *" instruction has not been processed?
Context
I am trying to recreate an AWS S3 setup on my local machine to match my web app's production infrastructure. It used to work perfectly fine with minio, but somehow now I keep getting those pesky CORS errors! :(
Regression
Probably not
Your Environment
Version used (minio --version): RELEASE.2020-12-18T03-27-42Z
Server setup and configuration: see "Current behavior" for docker-compose setup
Operating System and version (uname -a): Linux xxxxx 5.8.0-36-generic Adding HEAD verb to minioapi #40-Ubuntu SMP Tue Jan 5 21:54:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered:
This is default I don't know why you would need it.
Oh okay, so it should even work without it then! This issue actually seems to be the same as #11111 so I may close this and continue the conversation there...
Oh okay, so it should even work without it then! This issue actually seems to be the same as #11111 so I may close this and continue the conversation there...
Of course it works as I showed in #11111 your client is not setting the Origin: header that is required here.
Whatever I put in the
MINIO_API_CORS_ALLOW_ORIGIN
(as documented here), I cannot reach my minio server (ran on a docker container on my local machine) from my web app.Expected Behavior
Using its docker image, Minio server requests from a web browser should work if the appropriate
MINIO_API_CORS_ALLOW_ORIGIN
environment variable is set on the docker container.Current Behavior
Here is the
docker-compose.yml
configuration I am using or the minio image:Despite what I believe is a correct configuration, here are the responses from PUT requests to minio from my web app:
I believe this happens because my "Allow Origin *" instruction has not been processed?
Context
I am trying to recreate an AWS S3 setup on my local machine to match my web app's production infrastructure. It used to work perfectly fine with minio, but somehow now I keep getting those pesky CORS errors! :(
Regression
Probably not
Your Environment
minio --version
): RELEASE.2020-12-18T03-27-42Zuname -a
): Linux xxxxx 5.8.0-36-generic Adding HEAD verb to minioapi #40-Ubuntu SMP Tue Jan 5 21:54:35 UTC 2021 x86_64 x86_64 x86_64 GNU/LinuxThe text was updated successfully, but these errors were encountered: