CORS Pre-flight fails for public resources #301

Open
opened 2026-04-05 17:05:33 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Cavamania on 1/29/2026

Describe the Bug

If authorization is enabled on a public resource, the CORS pre-flight request will fail. CORS pre-flight normally doesn't allow extra headers so authentication may fail on the OPTIONS request. There also doesn't seem to be a mechanism to allow the preflight request to bypass auth (e.g. custom rule, CORS settings etc.).

Environment

  • OS Type & Version: Ubuntu 22.04
  • Pangolin Version: 1.15.1
  • Gerbil Version: 1.3.0
  • Traefik Version: v3.6
  • Newt Version: v1.9.0

To Reproduce

  • Start basic API node server
  • Add a resource with SSO enabled
  • Create a share link to create an auth token
  • Make CORS preflight request

Expected Behavior

Preflight requests are allow to pass auth.

*Originally created by @Cavamania on 1/29/2026* ### Describe the Bug If authorization is enabled on a public resource, the CORS pre-flight request will fail. CORS pre-flight normally doesn't allow extra headers so authentication may fail on the OPTIONS request. There also doesn't seem to be a mechanism to allow the preflight request to bypass auth (e.g. custom rule, CORS settings etc.). ### Environment - OS Type & Version: Ubuntu 22.04 - Pangolin Version: 1.15.1 - Gerbil Version: 1.3.0 - Traefik Version: v3.6 - Newt Version: v1.9.0 ### To Reproduce - Start basic API node server - Add a resource with SSO enabled - Create a share link to create an auth token - Make CORS preflight request ### Expected Behavior Preflight requests are allow to pass auth.
MrUnknownDE added the ImprovementbugImprovementbugbugbugbugbug labels 2026-04-05 17:05:33 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#301