WebSocket handshake cookies cloudfront deployment
Clash Royale CLAN TAG #URR8PPP WebSocket handshake cookies cloudfront deployment I have an angular 6 app & python(django 2.0.6) back-end. Angular 6 app is deployed using AWS S3 & CloudFront. Angular 6 app use websocket functionality. Everything works well locally, but when deployed Angular 6 app fails to pass a cookies with websocket handshake request. (Authorization is by cookies only for websoket connection. There are reasons for that, not relevant.) Websocket server located at subdomain: `api.site.com`` i tried multiple ways to set cookies in angular 6 app, such as: let domain = 'api.site.com' document.cookie = `Token=${token}; domain=${domain}; path=/`; document.cookie = `Token=${token}; path=/`; document.cookie = `Token=${token}; document.cookie = `Token=${token}, domain=${domain}, path=/`; using ngx-cookie-service : ngx-cookie-service this.cookieService.set('Token', token, undefined, '/', 'api.site.com'); this.cookieService.set('Token...