Files
nats-server/server
Ivan Kozlovic da91b06218 [FIXED] Websocket: Origin should be checked only if present
There are 2 options, same_origin and allowed_origins that should
apply only to webbrowsers that set the Origin http header. If
the header is not present, the server should not fail direct
clients using websocket protocol, or leafnodes.

From spec:
https://datatracker.ietf.org/doc/html/rfc6455#section-1.6

   The WebSocket Protocol uses the origin model used by web browsers to
   restrict which web pages can contact a WebSocket server when the
   WebSocket Protocol is used from a web page.  Naturally, when the
   WebSocket Protocol is used by a dedicated client directly (i.e., not
   from a web page through a web browser), the origin model is not
   useful, as the client can provide any arbitrary origin string.

Resolves #2207

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2021-05-11 18:37:16 -06:00
..
2020-05-19 14:15:11 -07:00
2021-04-09 15:18:06 -07:00
2021-05-07 15:51:31 +02:00
2021-05-07 15:51:31 +02:00
2021-05-07 15:51:31 +02:00
2020-02-25 19:53:09 -05:00
2021-05-11 13:12:10 -07:00
2020-11-17 18:57:45 +00:00
2021-05-04 20:48:14 -06:00
2021-05-11 13:12:10 -07:00
2021-05-10 17:29:24 -07:00
2021-05-11 13:12:10 -07:00
2021-05-06 18:46:32 -06:00
2021-01-14 01:14:52 -08:00
2021-01-14 01:14:52 -08:00
2019-05-06 15:41:38 -07:00
2021-04-19 11:43:43 -07:00
2021-05-10 16:54:33 -06:00
2020-06-12 10:03:47 -06:00
2018-10-06 14:06:14 -07:00
2021-05-07 15:51:31 +02:00
2019-11-14 20:05:32 -07:00
2018-03-15 22:31:07 -07:00
2019-11-14 20:05:32 -07:00
2021-04-12 10:17:13 -07:00
2019-12-12 11:58:24 -07:00
2021-05-11 13:12:10 -07:00
2021-05-06 19:41:43 -07:00