Fixes #350533 (Add "Origin" to the list of allowed headers in CrossOriginFilter).

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3431 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Simone Bordet 2011-06-28 09:28:18 +00:00
parent b290f203da
commit 77394d0c4b
2 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ jetty-7.4.3-SNAPSHOT
+ 349897 draft -09 websockets
+ 349997 MBeanContainer uses weak references
+ JETTY-1342 Recreate selector in change task
+ 350533 Add "Origin" to the list of allowed headers in CrossOriginFilter
jetty-7.4.2.v20110526
+ 334443 Improve the ability to specify extra class paths using the Jetty Maven Plugin

View File

@ -127,7 +127,7 @@ public class CrossOriginFilter implements Filter
allowedMethods.addAll(Arrays.asList(allowedMethodsConfig.split(",")));
String allowedHeadersConfig = config.getInitParameter(ALLOWED_HEADERS_PARAM);
if (allowedHeadersConfig == null) allowedHeadersConfig = "X-Requested-With,Content-Type,Accept";
if (allowedHeadersConfig == null) allowedHeadersConfig = "X-Requested-With,Content-Type,Accept,Origin";
allowedHeaders.addAll(Arrays.asList(allowedHeadersConfig.split(",")));
String preflightMaxAgeConfig = config.getInitParameter(PREFLIGHT_MAX_AGE_PARAM);