How does the client set Origin
Closed this issue · 6 comments
manyhelp commented
WatsonWsClient.ConfigureOptions();
How to set parameters
jchristn commented
Adding @MacKey-255 - this capability was part of their PR and may have some insight.
MacKey-255 commented
@manyhelp for example:
var client = new WatsonWsClient(WebsocketUrl).ConfigureOptions((options) =>
{
options.Cookies.Add(new Cookie("mycookie", "value", "/path", WebsocketUrl.DnsSafeHost));
});
The options
is the instance of the ClientWebSocketOptions
class, it allow to add options in the WebSocket Client. SAlu2s
manyhelp commented
@MacKey-255 no header add Origin
manyhelp commented
header add “User-Agent” "Origin" "Host"
MacKey-255 commented
jchristn commented
Thank you @MacKey-255 for chiming in!