Polish URL Cleanup
Closes gh-22617
This commit is contained in:
@@ -224,8 +224,8 @@ public class HandlersBeanDefinitionParserTests {
|
||||
List<HandshakeInterceptor> interceptors = transportService.getHandshakeInterceptors();
|
||||
assertThat(interceptors, contains(instanceOf(OriginHandshakeInterceptor.class)));
|
||||
assertTrue(transportService.shouldSuppressCors());
|
||||
assertTrue(transportService.getAllowedOrigins().contains("http://mydomain1.com"));
|
||||
assertTrue(transportService.getAllowedOrigins().contains("http://mydomain2.com"));
|
||||
assertTrue(transportService.getAllowedOrigins().contains("https://mydomain1.com"));
|
||||
assertTrue(transportService.getAllowedOrigins().contains("https://mydomain2.com"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -184,8 +184,8 @@ public class MessageBrokerBeanDefinitionParserTests {
|
||||
interceptors = defaultSockJsService.getHandshakeInterceptors();
|
||||
assertThat(interceptors, contains(instanceOf(FooTestInterceptor.class),
|
||||
instanceOf(BarTestInterceptor.class), instanceOf(OriginHandshakeInterceptor.class)));
|
||||
assertTrue(defaultSockJsService.getAllowedOrigins().contains("http://mydomain3.com"));
|
||||
assertTrue(defaultSockJsService.getAllowedOrigins().contains("http://mydomain4.com"));
|
||||
assertTrue(defaultSockJsService.getAllowedOrigins().contains("https://mydomain3.com"));
|
||||
assertTrue(defaultSockJsService.getAllowedOrigins().contains("https://mydomain4.com"));
|
||||
|
||||
SimpUserRegistry userRegistry = this.appContext.getBean(SimpUserRegistry.class);
|
||||
assertNotNull(userRegistry);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</websocket:decorator-factories>
|
||||
</websocket:transport>
|
||||
|
||||
<websocket:stomp-endpoint path=" /foo,/bar" allowed-origins="https://mydomain1.com,http://mydomain2.com">
|
||||
<websocket:stomp-endpoint path=" /foo,/bar" allowed-origins="https://mydomain1.com,https://mydomain2.com">
|
||||
<websocket:handshake-handler ref="myHandler"/>
|
||||
<websocket:handshake-interceptors>
|
||||
<bean class="org.springframework.web.socket.config.FooTestInterceptor"/>
|
||||
@@ -25,7 +25,7 @@
|
||||
</websocket:handshake-interceptors>
|
||||
</websocket:stomp-endpoint>
|
||||
|
||||
<websocket:stomp-endpoint path="/test,/sockjs" allowed-origins="https://mydomain3.com,http://mydomain4.com">
|
||||
<websocket:stomp-endpoint path="/test,/sockjs" allowed-origins="https://mydomain3.com,https://mydomain4.com">
|
||||
<websocket:handshake-handler ref="myHandler"/>
|
||||
<websocket:handshake-interceptors>
|
||||
<bean class="org.springframework.web.socket.config.FooTestInterceptor"/>
|
||||
|
||||
Reference in New Issue
Block a user