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:
parent
b290f203da
commit
77394d0c4b
|
@ -15,6 +15,7 @@ jetty-7.4.3-SNAPSHOT
|
||||||
+ 349897 draft -09 websockets
|
+ 349897 draft -09 websockets
|
||||||
+ 349997 MBeanContainer uses weak references
|
+ 349997 MBeanContainer uses weak references
|
||||||
+ JETTY-1342 Recreate selector in change task
|
+ JETTY-1342 Recreate selector in change task
|
||||||
|
+ 350533 Add "Origin" to the list of allowed headers in CrossOriginFilter
|
||||||
|
|
||||||
jetty-7.4.2.v20110526
|
jetty-7.4.2.v20110526
|
||||||
+ 334443 Improve the ability to specify extra class paths using the Jetty Maven Plugin
|
+ 334443 Improve the ability to specify extra class paths using the Jetty Maven Plugin
|
||||||
|
|
|
@ -127,7 +127,7 @@ public class CrossOriginFilter implements Filter
|
||||||
allowedMethods.addAll(Arrays.asList(allowedMethodsConfig.split(",")));
|
allowedMethods.addAll(Arrays.asList(allowedMethodsConfig.split(",")));
|
||||||
|
|
||||||
String allowedHeadersConfig = config.getInitParameter(ALLOWED_HEADERS_PARAM);
|
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(",")));
|
allowedHeaders.addAll(Arrays.asList(allowedHeadersConfig.split(",")));
|
||||||
|
|
||||||
String preflightMaxAgeConfig = config.getInitParameter(PREFLIGHT_MAX_AGE_PARAM);
|
String preflightMaxAgeConfig = config.getInitParameter(PREFLIGHT_MAX_AGE_PARAM);
|
||||||
|
|
Loading…
Reference in New Issue