Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C153119573 for ; Wed, 13 Apr 2016 08:02:25 +0000 (UTC) Received: (qmail 48549 invoked by uid 500); 13 Apr 2016 08:02:25 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 48513 invoked by uid 500); 13 Apr 2016 08:02:25 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 48494 invoked by uid 99); 13 Apr 2016 08:02:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Apr 2016 08:02:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 77A142C1F5C for ; Wed, 13 Apr 2016 08:02:25 +0000 (UTC) Date: Wed, 13 Apr 2016 08:02:25 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CAMEL-9855) REST DSL rest configuration attribute enableCORS has no effect when rendering resource listing/Camel contexts MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-9855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-9855. -------------------------------- Resolution: Duplicate Assignee: Claus Ibsen Duplicate of CAMEL-9761 > REST DSL rest configuration attribute enableCORS has no effect when rendering resource listing/Camel contexts > ------------------------------------------------------------------------------------------------------------- > > Key: CAMEL-9855 > URL: https://issues.apache.org/jira/browse/CAMEL-9855 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.16.3 > Environment: Karaf 4.0.3, Java 8, Blueprint > Reporter: Ralf Steppacher > Assignee: Claus Ibsen > Priority: Minor > > Setting the attribute {{enableCORS}} to true has no effect, i.e. none of the {{Access-Control-*}} are set. To enable CORS headers one has to add an {{apiProperty}} element like so: > {code:xml} > > > > /> > > {code} > See {{RestSwaggerSupport::renderCamelContexts(...)}} and {{RestSwaggerSupport::renderResourceListing(...)}}. > {{RestSwaggerSupport}} adds the headers with capital first letters: {{Access-Control-Allow-Origin}}. However, the response contains the header names all lower case. Not sure where they loose the capitalization. -- This message was sent by Atlassian JIRA (v6.3.4#6332)