diff options
author | jbion <joffrey.bion@amadeus.com> | 2019-06-13 10:36:43 +0200 |
---|---|---|
committer | jbion <joffrey.bion@amadeus.com> | 2019-06-13 10:37:36 +0200 |
commit | d3d0dc167cb30643f368ed3ffd527f5878fd2864 (patch) | |
tree | 0f711c873efc5f4aa0ad01fbb27a8efeaf03899c /sw-server | |
parent | Fix module name in Heroku ProcFile (diff) | |
download | seven-wonders-d3d0dc167cb30643f368ed3ffd527f5878fd2864.tar.gz seven-wonders-d3d0dc167cb30643f368ed3ffd527f5878fd2864.tar.bz2 seven-wonders-d3d0dc167cb30643f368ed3ffd527f5878fd2864.zip |
Allow any client to use the websocket API
Diffstat (limited to 'sw-server')
-rw-r--r-- | sw-server/src/main/kotlin/org/luxons/sevenwonders/config/WebSocketConfig.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw-server/src/main/kotlin/org/luxons/sevenwonders/config/WebSocketConfig.kt b/sw-server/src/main/kotlin/org/luxons/sevenwonders/config/WebSocketConfig.kt index 743e3d1a..b49d39cc 100644 --- a/sw-server/src/main/kotlin/org/luxons/sevenwonders/config/WebSocketConfig.kt +++ b/sw-server/src/main/kotlin/org/luxons/sevenwonders/config/WebSocketConfig.kt @@ -29,7 +29,7 @@ class WebSocketConfig @Autowired constructor(private val topicSubscriptionInterc override fun registerStompEndpoints(registry: StompEndpointRegistry) { registry.addEndpoint(SEVEN_WONDERS_WS_ENDPOINT) .setHandshakeHandler(handshakeHandler()) - .setAllowedOrigins("http://localhost:3000") // to allow frontend server proxy requests in dev mode + .setAllowedOrigins("*") // to allow any client to use the API .withSockJS() } |