I did some research but could not solve this issue. I have an app which does two things. For both of them I want to pass the same cookie:
**a) Ajax request with axios:
“`axios.get(`https://api.example.com`, {withCredentials: true})
**b) Websocket handshake:
“` let socket = new WebSocket(`wss://delivery.example.com`)
The cookie looks like this:
“` access_token=eyJhbGci; path=/; expires=Thu, 10 Oct 2019 12:24:24 GMT; domain=example.com; samesite=strict; secure; httponly
Option “`a)“`api.example.com
Option “`b)“`example.com
Bizarrely “`example.com“`a)
How can I make both of the option work with the same cookie?