activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cepo...@apache.org
Subject svn commit: r1503755 - /activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/web/AllowAnyOriginFilter.scala
Date Tue, 16 Jul 2013 15:23:35 GMT
Author: ceposta
Date: Tue Jul 16 15:23:35 2013
New Revision: 1503755

URL: http://svn.apache.org/r1503755
Log:
fixed CORS response headers for allowable methods: Access-Control-Allow-Methods

Modified:
    activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/web/AllowAnyOriginFilter.scala

Modified: activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/web/AllowAnyOriginFilter.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/web/AllowAnyOriginFilter.scala?rev=1503755&r1=1503754&r2=1503755&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/web/AllowAnyOriginFilter.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-broker/src/main/scala/org/apache/activemq/apollo/broker/web/AllowAnyOriginFilter.scala
Tue Jul 16 15:23:35 2013
@@ -46,7 +46,7 @@ class AllowAnyOriginFilter(val allowed:S
           }
 
           if ( req.getMethod == "OPTIONS" ) {
-            response.addHeader("Access-Control-Request-Method", "GET, POST, PUT, DELETE");
+            response.addHeader("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE");
             req.getHeader("Access-Control-Request-Headers") match {
               case headers:String=> response.addHeader("Access-Control-Allow-Headers",
headers);
               case _ =>



Mime
View raw message