fix(route): inject Origin header for native app canvas WebSocket auth
Native iOS/macOS apps do not send an Origin header in WebSocket connections. The gateway checkBrowserOrigin() fails immediately on null origin before any allowedOrigins check can run. Injecting Origin at the HAProxy ingress level gives the gateway a valid origin to validate against the existing allowedOrigins list (https://openclaw.apps.lab.apilab.us). Related: openclaw/openclaw#24055, #35030, #35109
This commit is contained in:
@@ -5,6 +5,14 @@ metadata:
|
|||||||
namespace: openclaw
|
namespace: openclaw
|
||||||
spec:
|
spec:
|
||||||
host: openclaw.apps.lab.apilab.us
|
host: openclaw.apps.lab.apilab.us
|
||||||
|
httpHeaders:
|
||||||
|
actions:
|
||||||
|
request:
|
||||||
|
- name: Origin
|
||||||
|
action:
|
||||||
|
type: Set
|
||||||
|
set:
|
||||||
|
value: "https://openclaw.apps.lab.apilab.us"
|
||||||
to:
|
to:
|
||||||
kind: Service
|
kind: Service
|
||||||
name: openclaw
|
name: openclaw
|
||||||
|
|||||||
Reference in New Issue
Block a user