graphql-engine/server/src-lib/Hasura/GraphQL
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
..
Resolve breaking: correct (de)serialisation of postgres numeric types in json (fix #1523) (#1662) 2019-03-01 17:15:04 +05:30
Transport read cookie while initialising websocket connection (fix #1660) (#1668) 2019-03-04 13:16:53 +05:30
Validate generate scalar types for SQL function arguments (fix #1632) (#1633) 2019-02-22 15:57:38 +05:30
Context.hs generate scalar types for SQL function arguments (fix #1632) (#1633) 2019-02-22 15:57:38 +05:30
Explain.hs breaking: correct (de)serialisation of postgres numeric types in json (fix #1523) (#1662) 2019-03-01 17:15:04 +05:30
RemoteServer.hs support union and interface types in remote schema (close #1276) (#1361) 2019-01-28 22:15:10 +05:30
Resolve.hs breaking: correct (de)serialisation of postgres numeric types in json (fix #1523) (#1662) 2019-03-01 17:15:04 +05:30
Schema.hs enforce column presets of update permission with upserts (fix #1647) (#1653) 2019-02-23 16:06:42 +05:30
Utils.hs refactor event processing logic (#1639) 2019-02-22 17:55:36 +05:30
Validate.hs refactor to remove warnings especially with orphan instances (#1163) 2018-12-13 12:56:15 +05:30