Return-Path: X-Original-To: apmail-axis-java-dev-archive@www.apache.org Delivered-To: apmail-axis-java-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 A07961885F for ; Thu, 9 Jul 2015 12:27:58 +0000 (UTC) Received: (qmail 19896 invoked by uid 500); 9 Jul 2015 12:27:58 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 19756 invoked by uid 500); 9 Jul 2015 12:27:58 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 19746 invoked by uid 99); 9 Jul 2015 12:27:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 12:27:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bif@verizon.net designates 206.46.173.9 as permitted sender) Received: from [206.46.173.9] (HELO vms173009pub.verizon.net) (206.46.173.9) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Jul 2015 12:25:42 +0000 Received: from [127.0.0.1] ([70.197.133.251]) by vms173009.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0NR7009WXZXM4540@vms173009.mailsrvcs.net> for java-dev@axis.apache.org; Thu, 09 Jul 2015 07:27:29 -0500 (CDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=Jp0M15MC c=1 sm=1 tr=0 a=gNuneAdowb9Klp9ycWuUeg==:117 a=o1OHuDzbAAAA:8 a=oR5dmqMzAAAA:8 a=4JAii899aesA:10 a=-9mUelKeXuEA:10 a=8nJEP1OIZ-IA:10 a=zOBTXjUuO1YA:10 a=SSmOFEACAAAA:8 a=mt0cOGSk3hRPHbtxa2IA:9 a=wPNLvfGTeEIA:10 Message-id: <559E68A7.9020006@verizon.net> Date: Thu, 09 Jul 2015 08:27:19 -0400 From: "T. Allen" User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-version: 1.0 To: java-dev@axis.apache.org Subject: Re: CORS Supprt in Axis2 References: In-reply-to: Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org +1 for adding CORS support. On 7/8/2015 8:13 PM, Asanka Dissanayake wrote: > Hi Devs, > I recently happened to call a Axis2Service with AJAX post method. Then > there was an "Access-Control-Allow-Origin Error". When I was digging > through the path, I came to know about CORS (Cross Origin Resource > Sharing) spec [1] . > > User agents commonly apply same-origin restrictions to network > requests. These restrictions prevent a client-side Web application > running from one origin from obtaining data retrieved from another > origin, and also limit unsafe HTTP requests that can be automatically > launched toward destinations that differ from the running > application's origin. > > To overcome this issue , I implemented an axis2 handler which the > implementation is very specific to my use case. It handles the > preflight request. > > In Axis2 , have we implemented CORS Spec? If not what about providing > CORS support with Axis2? > Since I already have the implementation, I can make it more generic > and add to Axis2. > > [1] http://www.w3.org/TR/cors/ > > Thanks, > Asanka --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org For additional commands, e-mail: java-dev-help@axis.apache.org