Registry Browser broken because CORS Preflight has authentication
Author: felixlabrotCreated Aug 15, 2026Updated Sep 27, 2026
Labelskind/bugbug/need-confirmationbot/triage-completerelease/3.0.0
Before you start please confirm the following.
- Yes, I've searched similar issues on GitHub.
- Yes, I've checked whether this issue is covered in the Portainer documentation.
Problem Description
Browsing a custom registry which uses credentials is impossible. Portainer sends an authentication header in the OPTIONS request of the CORS preflight, which is totally illegal and causes the browser to show a CORS error.
Expected Behavior
CORS Preflight must be unauthenticated
Actual Behavior
Auth Headers are being send with the OPTIONS request
Steps to Reproduce
- add any custom registry with authentication
- attempt to browse this registry
Portainer logs or screenshots
No response
Portainer version
2.39.6
Portainer Edition
Business Edition (BE/EE) with 5NF / 3NF license
Platform and Version
Docker version 29.5.3, build d1c06ef
OS and Architecture
VMware Photon OS 5.0
Browser
Firefox 153
What command did you use to deploy Portainer?
Additional Information
No response
Source: portainer/portainer