graphql-engine/server/src-lib/Hasura/Server
Anon Ray 02d80c9ac6 read cookie while initialising websocket connection (fix #1660) (#1668)
* read cookie while initialising websocket connection (fix #1660)

* add tests for cookie on websocket init

* fix logic for tests

* enforce cors, and flag to force read cookie when cors disabled

  - as browsers don't enforce SOP on websockets, we enforce CORS policy
  on websocket handshake
  - if CORS is disabled, by default cookie is not read (because XSS
  risk!). Add special flag to force override this behaviour

* add log and forward origin header to webhook

  - add log notice when cors is disabled, and cookie is not read on
  websocket handshake
  - forward origin header to webhook in POST mode. So that when CORS is
  disabled, webhook can also enforce CORS independently.

* add docs, and forward all client headers to webhook
2019-03-04 13:16:53 +05:30
..
Auth add support for multiple domains in cors config (close #1436) (#1536) 2019-02-14 11:28:38 +05:30
App.hs read cookie while initialising websocket connection (fix #1660) (#1668) 2019-03-04 13:16:53 +05:30
Auth.hs revert "forward response headers from remote servers (#1664)" 2019-02-28 17:20:56 +05:30
CheckUpdates.hs refactor to remove warnings especially with orphan instances (#1163) 2018-12-13 12:56:15 +05:30
Cors.hs read cookie while initialising websocket connection (fix #1660) (#1668) 2019-03-04 13:16:53 +05:30
Init.hs read cookie while initialising websocket connection (fix #1660) (#1668) 2019-03-04 13:16:53 +05:30
Logging.hs improve startup logging, close #1236 (#1258) 2019-01-02 16:54:17 +05:30
Middleware.hs read cookie while initialising websocket connection (fix #1660) (#1668) 2019-03-04 13:16:53 +05:30
Query.hs breaking: correct (de)serialisation of postgres numeric types in json (fix #1523) (#1662) 2019-03-01 17:15:04 +05:30
Telemetry.hs add functions to server telemetry (#1500) 2019-01-28 22:16:44 +05:30
Utils.hs revert "forward response headers from remote servers (#1664)" 2019-02-28 17:20:56 +05:30
Version.hs add anonymous telemetry (#1401) 2019-01-28 19:25:28 +05:30