-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Server does not comply W3C preflight-request specification #4458
Comments
It returns I don't think registry API has ever been designed to work with CORS in mind - you could probably smack some nginx in front and configure it to do that |
Hi, thanks for your response. In 2016 I created a user interface for private registries. Since the beginning I'm telling my users to bypass this issue with a nginx configuration as you suggested. I created the issue today because one of my users wanted a statement from the distribution project. |
Honestly, I dont think we'll do anything about it anytime soon, no. I'm basically the only [somewhat] active person on this project, so don't hold your breath. Feel free to keep this issue open; it's something that should probably be taken into account and done, so it's fine to keep it "visible" |
Description
As stated in the CORS Protocol, in a preflight request, i.e. on an OPTIONS request, the server should return specific headers and 200 or 204 status code.
The headers can be configured with the configuration file, however, the server is always returning an
HTTP/1.1 401 Unauthorized
status code.from 3.2.3. HTTP responses:
Reproduce
Using the configuration:
curl -vv -X OPTIONS http://127.0.0.1:5000/v2/_catalog
Expected behavior
The server should return a 200 status code.
registry version
registry github.com/docker/distribution 2.8.3
Additional Info
No response
The text was updated successfully, but these errors were encountered: