# WebSocket connections using HTTP/2 and CloudFlare

**URL:** <https://community.traefik.io/t/websocket-connections-using-http-2-and-cloudflare/9212>\
**Category:** Traefik v2\
**Tags:** kubernetes-ingress, kubernetes-crd\
**Created:** [January 6, 2021, 2:02am UTC](https://community.traefik.io/t/websocket-connections-using-http-2-and-cloudflare/9212 "2021-01-06T02:02:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ByteAlex](https://avatars.discourse-cdn.com/v4/letter/b/eada6e/32.png) [@ByteAlex](https://community.traefik.io/u/ByteAlex)\
**Post date:** [January 6, 2021, 2:02am UTC](https://community.traefik.io/t/websocket-connections-using-http-2-and-cloudflare/9212/1 "2021-01-06T02:02:05Z")

</div>

Hello!

We've been trying to setup a secure web socket via traffic to a spring Webserver.  
The connection is inbound to traefik via HTTP/2. The IngressRoute (HttpRouter) responsible for this endpoint is doing the SSL termination and moving the traffic to a TraefikService with scheme http.  
We tried several variants, with middleware which append Headers like "X-Forwarded-Proto: https", but still the furthest we could get is as follows: The Spring WebServer did accept the connection, but it instantly got terminated again and no response was sent to the client.

Am I missing any configuration for the setup as described above?

Thank you & Best Regards,  
Alex
