Return-Path: X-Original-To: apmail-cxf-dev-archive@www.apache.org Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD323177D2 for ; Fri, 27 Mar 2015 22:03:05 +0000 (UTC) Received: (qmail 4655 invoked by uid 500); 27 Mar 2015 22:03:00 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 4534 invoked by uid 500); 27 Mar 2015 22:03:00 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 4518 invoked by uid 99); 27 Mar 2015 22:03:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2015 22:03:00 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of drreta@gmail.com designates 209.85.216.170 as permitted sender) Received: from [209.85.216.170] (HELO mail-qc0-f170.google.com) (209.85.216.170) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2015 22:02:33 +0000 Received: by qcay5 with SMTP id y5so28580161qca.1 for ; Fri, 27 Mar 2015 15:02:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:reply-to:message-id:to:cc:subject:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=tYqhK/CiLbeGsWg9vJZgscUK8MD2NSY1kaZqohzPmsQ=; b=meLb9vS1Ld3sJhKWRvATHx6PZB5VyYdxV+FQXsOLhOSg9CoxIQ3SZGksnX53YZ6tTv +f6j/KHyVXZrP10LyU9X9mcJEBibk+kiX5Fs4HG5XTTWMOBukxQfZQz3fUXeLI3xtbhx b39vPbvy2ZCpoNkCgaI18RZuQLfaaM84LT5G/1SF45yMt7jiReUPfMTf4+jj4DO7Inrd 0IeoeD79/LVacCnCfsV4FDGTdQeEovGGw3s7VVlp458Tcn4m4kyqhXnGy2qOAfUN4/6p of8NcCw/MFYPvdrg+mklobUbMQHbPtungV61GqXEhbBIqjDgPcVaYpYHCgHGXuiVNdIj bNPA== X-Received: by 10.140.20.226 with SMTP id 89mr26628874qgj.16.1427493751143; Fri, 27 Mar 2015 15:02:31 -0700 (PDT) Received: from [192.168.0.102] (modemcable157.165-80-70.mc.videotron.ca. [70.80.165.157]) by mx.google.com with ESMTPSA id j94sm2373666qgd.47.2015.03.27.15.02.30 (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 27 Mar 2015 15:02:30 -0700 (PDT) Date: Fri, 27 Mar 2015 18:02:28 -0400 From: Andriy Redko Reply-To: Andriy Redko X-Priority: 3 (Normal) Message-ID: <841573787.20150327180228@gmail.com> To: Tyler Palsulich CC: dev@cxf.apache.org, dev@tika.apache.org Subject: Re: Enabling CORS In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Tyler, You need to add CrossOriginResourceSharingFilter to the list of providers for your server. Please let me know if you need help with that, the way to add it depends on a way you configure the server. Best Regards, Andriy Redko TP> Hi Folks, TP> I'm trying to enable CORS on a few of Tika's Server resources. But, after TP> adding the pom.xml dependency and a TP> @CrossOriginResourceSharing( TP> allowOrigins = {"url"} TP> ) TP> annotation to the resources, the Access-Control-Allow-Origin header is TP> still not given. TP> Is there another configuration I need to add? Tika's server doesn't TP> currently have a bean configuration like at the bottom of the examples page TP> . TP> Thanks for any help, TP> Tyler