Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D227710086 for ; Thu, 10 Oct 2013 12:24:46 +0000 (UTC) Received: (qmail 58290 invoked by uid 500); 10 Oct 2013 12:24:43 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 57018 invoked by uid 500); 10 Oct 2013 12:24:37 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 55018 invoked by uid 99); 10 Oct 2013 12:24:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Oct 2013 12:24:34 +0000 X-ASF-Spam-Status: No, hits=4.4 required=5.0 tests=FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of prgtrdr@gmail.com does not designate 216.139.250.139 as permitted sender) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Oct 2013 12:24:28 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VUFHK-0005XI-Pe for users@activemq.apache.org; Thu, 10 Oct 2013 05:23:42 -0700 Date: Thu, 10 Oct 2013 05:23:27 -0700 (PDT) From: prgtrdr To: users@activemq.apache.org Message-ID: <1381407807695-4672528.post@n4.nabble.com> In-Reply-To: References: Subject: Re: STOMP/Websockets and CORS MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Just to confirm, I am able to do cross-domain requests to ActiveMQ against the Jetty server. If you pay close attention to the documentation you won't go too far wrong but unfortunately, there are some incorrect instructions for how to set it up on various web sites. In general, the given samples will not properly handle preflight requests. Specifically, you will find sample web.xml that looks like this: cross-origin org.eclipse.jetty.servlets.CrossOriginFilter allowedOrigins * allowedMethods * allowedHeaders * cross-origin /* But to make it work it needs to look like this: cross-origin org.eclipse.jetty.servlets.CrossOriginFilter allowedOrigins * allowedMethods GET,PUT,HEAD,OPTIONS allowedHeaders * cross-origin /* -- View this message in context: http://activemq.2283324.n4.nabble.com/STOMP-Websockets-and-CORS-tp4670067p4672528.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.