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 B241E1783E for ; Wed, 26 Aug 2015 09:21:01 +0000 (UTC) Received: (qmail 61542 invoked by uid 500); 26 Aug 2015 09:21:01 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 61476 invoked by uid 500); 26 Aug 2015 09:21:01 -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 61464 invoked by uid 99); 26 Aug 2015 09:21:01 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2015 09:21:01 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id B277A1AACEC for ; Wed, 26 Aug 2015 09:21:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id k1vfle0ffScE for ; Wed, 26 Aug 2015 09:21:00 +0000 (UTC) Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com [209.85.212.180]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id D83AD20865 for ; Wed, 26 Aug 2015 09:20:59 +0000 (UTC) Received: by wicne3 with SMTP id ne3so38497694wic.0 for ; Wed, 26 Aug 2015 02:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=ePp1cLMUZU+fJqCvVvg/AKKTFvidVtv184TMilh5p1o=; b=Y/gmcoJ2Kbxibns1TPA70iq1o268LNa1LJKmV1PxR7NJM1uV+4En51TwxyWGiM03KU 5kR39lgwrpTBYX7/2qZSjZyyeFdCXMS5534fvYBCSPSyvxdj7dSrRgxd5q93r9S34fBI pusyh3VJ5D+Pp9NQt36wqcoeLUfFy3N5epSrw2taR5yYoh1BpLoaKuX0fWCEb834B3Io QerPHe1gILInl4BlZhxVj+bCkv+L3e3I2krgVr1p+zhBiopjv/Hxcnu3RZLTVP2jc+IB +i/Jo+W20ydlGUDIWf1oLsrBhkR09iuXNBHfanKRsBy7Kjg/EJViF4OEIctYHcG7VyPk 2NYQ== X-Received: by 10.194.92.236 with SMTP id cp12mr56518478wjb.139.1440580858589; Wed, 26 Aug 2015 02:20:58 -0700 (PDT) Received: from [192.168.2.7] ([89.100.27.122]) by smtp.googlemail.com with ESMTPSA id kb1sm2857213wjc.24.2015.08.26.02.20.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Aug 2015 02:20:57 -0700 (PDT) Message-ID: <55DD84EC.7070703@gmail.com> Date: Wed, 26 Aug 2015 10:20:44 +0100 From: Sergey Beryozkin User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: dev@cxf.apache.org Subject: Re: cxf git commit: [CXF-6557] add a CORS filter for swagger2 samples References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Hi Aki Benson added CrossOriginResourceSharingFilter to CXF awhile back, it is quite advanced, handles simple and pre-flight requests, can be configured directly or it can check the annotations on the resource methods. Only FYI (in case you'll need to do more fine-grained CORS control), having a simple custom CORS filter in a demo is perfect. Thanks, Sergey