Fix failing tests
This commit ensures that if an Origin is returned as it was provided, possibly with a trailing slash. See gh-26892
This commit is contained in:
@@ -284,7 +284,7 @@ class CrossOriginTests {
|
||||
CorsConfiguration config = getCorsConfiguration(chain, false);
|
||||
assertThat(config).isNotNull();
|
||||
assertThat(config.getAllowedMethods()).containsExactly("GET");
|
||||
assertThat(config.getAllowedOrigins()).containsExactly("http://www.foo.example/");
|
||||
assertThat(config.getAllowedOrigins()).containsExactly("http://www.foo.example");
|
||||
assertThat(config.getAllowCredentials()).isTrue();
|
||||
}
|
||||
|
||||
@@ -297,7 +297,7 @@ class CrossOriginTests {
|
||||
CorsConfiguration config = getCorsConfiguration(chain, false);
|
||||
assertThat(config).isNotNull();
|
||||
assertThat(config.getAllowedMethods()).containsExactly("GET");
|
||||
assertThat(config.getAllowedOrigins()).containsExactly("http://www.foo.example/");
|
||||
assertThat(config.getAllowedOrigins()).containsExactly("http://www.foo.example");
|
||||
assertThat(config.getAllowCredentials()).isTrue();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user