这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@ecthiender
Copy link
Contributor

@ecthiender ecthiender commented May 30, 2019

Description

Forward only Set-Cookie header received from remote schema servers, to client.

Note: This won't send back any remote response headers when the websocket transport is used.

Affected components

  • Server
  • Tests

Related Issues

#1654

Solution and Design

Introduced new data type HttpResponse which encapsulates headers and some response body. Changed corresponding handlers. It only sends Set-Cookie header from remote.

Steps to test and verify

  1. Add a remote schema which returns say Set-Cookie header
  2. Make a remote schema query
  3. Observe if the cookie is set in the browser

Limitations, known bugs & workarounds

…eaders

Resolve Conflicts:
  docs/graphql/manual/remote-schemas/index.rst
  server/src-lib/Hasura/GraphQL/Transport/HTTP.hs
  server/src-lib/Hasura/GraphQL/Transport/WebSocket.hs
  server/src-lib/Hasura/Server/App.hs
  server/src-lib/Hasura/Server/Auth.hs
  server/src-lib/Hasura/Server/Utils.hs
  server/tests-py/graphql_server.py
@ecthiender ecthiender added the c/server Related to server label May 30, 2019
@netlify
Copy link

netlify bot commented May 30, 2019

Deploy preview for hasura-docs ready!

Built with commit 037269f

https://deploy-preview-2305--hasura-docs.netlify.com

@hasura-bot
Copy link
Contributor

Review app for commit d597036 deployed to Heroku: https://hge-ci-pull-2305.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2305-d5970362

@ecthiender ecthiender added the s/ok-to-merge Status: This pull request can be merged to master label May 30, 2019
@hasura-bot
Copy link
Contributor

Review app for commit 2905435 deployed to Heroku: https://hge-ci-pull-2305.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2305-29054350

@ecthiender ecthiender changed the title forward response headers from remote servers (fix #1654) forward cookie headers from remote servers (fix #1654) May 31, 2019
@hasura-bot
Copy link
Contributor

Review app for commit 626c222 deployed to Heroku: https://hge-ci-pull-2305.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2305-626c222c

@hasura-bot
Copy link
Contributor

Review app for commit 098410a deployed to Heroku: https://hge-ci-pull-2305.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2305-098410af

0x777
0x777 previously approved these changes Jun 3, 2019
@hasura-bot
Copy link
Contributor

Review app for commit 59cd120 deployed to Heroku: https://hge-ci-pull-2305.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2305-59cd120a

@ecthiender ecthiender self-assigned this Jun 4, 2019
@hasura-bot
Copy link
Contributor

Review app for commit 037269f deployed to Heroku: https://hge-ci-pull-2305.herokuapp.com
Docker image for server: hasura/graphql-engine:pull2305-037269f2

@0x777 0x777 merged commit 278f26b into hasura:master Jun 4, 2019
@hasura-bot
Copy link
Contributor

Review app https://hge-ci-pull-2305.herokuapp.com is deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c/server Related to server s/ok-to-merge Status: This pull request can be merged to master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants