skyleaworlder commented on issue #14:
URL: 
https://github.com/apache/shenyu-helm-chart/issues/14#issuecomment-1256950286

   > > I think you can see this to configure 
`shenyu.sync.websocket.allowOrigins` @skyleaworlder
   > > 
https://shenyu.apache.org/zh/docs/user-guide/property-config/admin-property-config#shenyusync-%E9%85%8D%E7%BD%AE
   > 
   > Thanks. Actually I forgot to read manuals about application config. But 
this manual doesn't solve this.
   > 
   > ```
   > # shenyu-admin
   > 2022-09-24 11:33:58 [http-nio-0.0.0.0-9095-exec-5] ERROR 
org.apache.shenyu.admin.listener.websocket.WebsocketConfigurator - 
originHeaderValue is forbidden: 
ws://shenyu-bootstrap.shenyu.svc.cluster.local:9195
   > 2022-09-24 11:34:08 [http-nio-0.0.0.0-9095-exec-7] ERROR 
org.apache.shenyu.admin.listener.websocket.WebsocketConfigurator - 
originHeaderValue is forbidden: 
ws://shenyu-bootstrap.shenyu.svc.cluster.local:9195
   > 
   > # shenyu-bootstrap
   > 2022-09-24 11:33:58 [shenyu-shared_wheel_timer-4] WARN  
org.apache.shenyu.plugin.sync.data.websocket.client.ShenyuWebsocketClient - 
websocket connection 
server[ws://shenyu-admin.shenyu.svc.cluster.local:9095/websocket] is error.....
   > 2022-09-24 11:34:08 [shenyu-shared_wheel_timer-4] WARN  
org.apache.shenyu.plugin.sync.data.websocket.client.ShenyuWebsocketClient - 
websocket connection 
server[ws://shenyu-admin.shenyu.svc.cluster.local:9095/websocket] is error.....
   > ```
   > 
   > Here shenyu-helm-chart provides a basic 
[configuration](https://github.com/apache/shenyu-helm-chart/blob/main/charts/shenyu/values.yaml#L219):
   > 
   > ```yaml
   >       sync:
   >         websocket:
   >           urls: ws://{{ template "common.names.fullname" . 
}}-admin.shenyu.svc.cluster.local:9095/websocket
   >           allowOrigin: ws://{{ template "common.names.fullname" . 
}}-bootstrap.shenyu.svc.cluster.local:9195
   > ```
   > 
   > And I also check it in shenyu-bootstrap pod:
   > 
   > ```yaml
   > allowOrigin: ws://shenyu-bootstrap.shenyu.svc.cluster.local:9195
   > urls: ws://shenyu-admin.shenyu.svc.cluster.local:9095/websocket
   > ```
   
   I see. I got the reason now.
   
   And I also find #15 has already fixed it. Thanks.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to