Fix kiosk SignalR: skip WebSocket transport, add hubs/Kiosk to subscription bypass

1. kiosk-welcome.js: force SSE|LongPolling transport on the kiosk hub.
   Azure App Service's ingress proxy cancels anonymous WebSocket handshakes
   before the SignalR protocol exchange completes. SSE and long polling
   work fine for the low-frequency StartIntake push this hub needs.

2. SubscriptionMiddleware: add /hubs/ and /Kiosk/ to SkipPaths so a
   subscription redirect can never fire on a hub or kiosk request and
   abort the connection mid-handshake.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-13 20:20:06 -04:00
parent 0b24c320cd
commit 2acf54e1a9
2 changed files with 8 additions and 1 deletions
@@ -47,6 +47,8 @@ public class SubscriptionMiddleware
"/Billing",
"/api/",
"/stripe/",
"/hubs/",
"/Kiosk/",
"/Profile/Photo",
"/CompanyLogo",
"/AccountDataExport"