-
-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CORS error with credentials on different domains (Access-Control-Allow-Credentials) #310
Comments
Hi, thank you for using my project 😄 Please check opened issues before posting yours. FYI:
Duplicate #306 |
Hi there! The fix has bee published! You can use the tag I've included some error message too for this particular use case 😉 TBH, I think the UI was right, you also miss-configured your registry server and the header I've tried the docker registry UI 2.4.1 with a docker registry 2.8.2 with credentials correctly configured and here is the result: And If i remove the This is a typical CORS issue, when this happens, the web interface will not process the server's response. That's why I'm displaying those messages for my users 😉 |
Getting the Access-Control-Allow-Credentials header right was not as easy as it seemed for my setup (nginx as reverse proxy and "small things web server" in a container connected to the outside world, registry and registry-ui in unnamed containers on separate virtual networks between nginx and those containers behind the proxy). I ended up with adding FQDNs to my DNS to win that battle. |
Ok, so the error message was right 🙂 I will update the title of the issue then |
"Hi, my name is noses and I'm using docker-registry-ui to access registry:2."
"Hi, noses!"
Bug description
Docker's own registry server does not like the request docker-ui is sending; the log is showing (line breaks added by me)
I would translate that to "100000 -- are you drunk or what" error.
The result is leading to the fall-through message
"The
Access-Control-Allow-Credentials
header in the response is missing and must be set totrue
when the request's credentials mode is on. Originhttps://my.FQDN:5000
is therefore not allowed access.So there are two bugs.
How to Reproduce
Install Docker registry:2 and docker-registry-ui according to documentation. Test registry using login information. Try using the
Expected behavior
Good question; I never got there. I guess some list of images held by the registry should show up.
System information
The text was updated successfully, but these errors were encountered: