Files
waf-platform/EdgeUser/web/docs/cdn/websocket.md
2026-02-04 20:27:13 +08:00

12 lines
654 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Websocket
可以在网站"设置" -- "Websocket"里设置是否开启Websocket。
![websocket1.png](websocket1.png)
上图中:
* 启用Websocket启用后网站才会提供Websocket功能
* 允许所有来源域:是否允许所有的来源域(`Origin`如果选中了表示允许在所有的域名上访问此Websocket
* 如果没有选中允许所有来源域,则可以设置允许的域名:
* 允许的来源域列表只允许在此列表中的来源域名访问Websocket服务
* 更多选项:
* 是否传递请求来源域选中表示把接收到的请求Header中的`Origin`字段传递到源站。