[ https://issues.apache.org/jira/browse/CAMEL-10980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15904308#comment-15904308 ]
Scott Cranton commented on CAMEL-10980: --------------------------------------- So if you enableCORS(true) *without* setting the ApiContextPath it throws the duplicate OPTIONS handler exception. If you set both enableCORS(true) and setApiContextPath("api-doc"), it does not throw an exception and seems to work. If both settings are required, at a minimum the error should be friendlier... Need to debug more... > error with enableCORS(true) with camel-undertow > ----------------------------------------------- > > Key: CAMEL-10980 > URL: https://issues.apache.org/jira/browse/CAMEL-10980 > Project: Camel > Issue Type: Bug > Components: camel-undertow > Affects Versions: 2.19.0 > Reporter: Scott Cranton > Assignee: Scott Cranton > > enableCORS(true) is causing an java.lang.IllegalArgumentException: Duplicate > handler for a method 'OPTIONS': > 'io.undertow.server.handlers.HttpContinueReadHandler@79c97cb', > 'io.undertow.server.handlers.HttpContinueReadHandler@2d9caaeb' -- This message was sent by Atlassian JIRA (v6.3.15#6346)