Skip to content
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

DELETE on Registry with Basic Auth not working #118

Closed
mabaum opened this issue Jan 24, 2020 · 3 comments
Closed

DELETE on Registry with Basic Auth not working #118

mabaum opened this issue Jan 24, 2020 · 3 comments

Comments

@mabaum
Copy link

mabaum commented Jan 24, 2020

Hi, I use this docker registry UI and I have an issue...

Bug description

I have set up a Registry which requires Basic Auth. The Registry lists all Images and Tags correctly.
When i Click on "Delete" within the UI an error "Access on registry response was blocked. Try adding the header Access-Control-Expose-Headers: Docker-Content-Digest to your proxy or registry: https://docs.docker.com/registry/configuration/#http" is displayed but on the Console u can see that there is an 401 delivered back to the UI from the registry

How to Reproduce

  1. Log into a Registry secured by Basic Auth
  2. Click on 'Delete' on any Image
  3. Error is displayed

Expected behavior

Successful delete (maybe a Basic auth Dialog from Browser before)

System information

  • OS: Macos
  • Browser:
    • Name: Chrome
    • Version: Version 81.0.4028.0 (Official Build) canary (64-bit)
  • Docker registry UI:
    • Version: 1.4.3
    • Interface variant: latest and static
    • Server: docker
- Docker version: 19.03
- OS/Arch: linux/amd64
- Tools: docker-compose
@Joxit
Copy link
Owner

Joxit commented Jan 24, 2020

Hi

is your issue related to #104 ? The registry is buggy, it returns 401 status codes on OPTIONS for DELETE requests and that's not how to do it... The full explanation here.

@mabaum
Copy link
Author

mabaum commented Jan 25, 2020

yes was #104

https://enable-cors.org/server_nginx.html did the part with the OPTIONS header within my nginx - config :)

@Joxit
Copy link
Owner

Joxit commented Jan 25, 2020

Okay, that's great ! 😄 I close this

@Joxit Joxit closed this as completed Jan 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants