Claus Ibsen created CAMEL-28008:
-----------------------------------

             Summary: camel-rest - Rest DSL CORS should not allow credentials 
for the wildcard origin
                 Key: CAMEL-28008
                 URL: https://issues.apache.org/jira/browse/CAMEL-28008
             Project: Camel
          Issue Type: Bug
          Components: camel-core
            Reporter: Claus Ibsen
            Assignee: Claus Ibsen
             Fix For: 4.25.0


When CORS is enabled in the Rest DSL with Access-Control-Allow-Credentials=true 
(corsAllowCredentials(true)) and Access-Control-Allow-Origin is left at its 
default *, RestBindingAdvice answers with the Origin of the request instead of 
*, together with Access-Control-Allow-Credentials=true.

The fetch specification does not allow credentials with the origin *. 
platform-http-vertx, camel-jetty, camel-cometd (CAMEL-25984) and camel-a2a only 
allow credentials for an origin that is configured. The Rest DSL should do the 
same: with the origin * the Access-Control-Allow-Credentials header is left 
out, and a WARN is logged when the routes start. To allow credentials, the 
allowed origin is configured.

----
_Filed by Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to