diff --git a/base/api/deployment.yaml b/base/api/deployment.yaml index 3280fdd..f8485ee 100644 --- a/base/api/deployment.yaml +++ b/base/api/deployment.yaml @@ -19,6 +19,10 @@ spec: metadata: labels: app: api + # Changed with Hasura's POST hook mode: the same apply rolls the api onto + # the current image, which serves POST /hasura. + annotations: + 5stack.gg/hasura-hook-mode: post spec: serviceAccountName: server-creator dnsConfig: diff --git a/base/hasura/deployment.yaml b/base/hasura/deployment.yaml index 4682945..24fd3e8 100644 --- a/base/hasura/deployment.yaml +++ b/base/hasura/deployment.yaml @@ -126,6 +126,11 @@ spec: value: "true" - name: HASURA_GRAPHQL_AUTH_HOOK value: "http://api:5585/hasura" + # POST mode passes the client's Origin and Content-Type to the hook. + - name: HASURA_GRAPHQL_AUTH_HOOK_MODE + value: "POST" + - name: HASURA_GRAPHQL_AUTH_HOOK_SEND_REQUEST_BODY + value: "false" - name: HASURA_GRAPHQL_EVENT_HOOK value: "http://api:5585/hasura/events" - name: HASURA_GRAPHQL_ACTIONS_HOOK