Tuesday, 01 April 2025
  7 Replies
  46 Visits
  Subscribe
I'm using TsgcWebSocketHTTPServer to serve not only the WebSocket connection but some HTTP requests.
While I'm using basic authentication - the websockets authenticate properly.
But when I try to request any http resource with "fetch" GET from Javascript - I'm getting "401 - Unauthorized".
Unfortunately the OnAuthentication event is not executed while trying to request HTTP resource.
How to properly call "fetch" with credentials to get resource from HTTP server using "TsgcWebSocketHTTPServer" component ?