From 4238ef11082e45ed7799d900f702367508957f3c Mon Sep 17 00:00:00 2001 From: Mia Date: Sun, 6 Apr 2025 21:44:56 -0700 Subject: [PATCH 1/2] feat: add kratos webhook header allowlist config details Signed-off-by: Mia --- docs/guides/integrate-with-ory-cloud-through-webhooks.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/guides/integrate-with-ory-cloud-through-webhooks.mdx b/docs/guides/integrate-with-ory-cloud-through-webhooks.mdx index dbd009f1b..9c8b664e2 100644 --- a/docs/guides/integrate-with-ory-cloud-through-webhooks.mdx +++ b/docs/guides/integrate-with-ory-cloud-through-webhooks.mdx @@ -91,7 +91,7 @@ template as well. These objects are available through a `ctx` object. #### Accessing request headers -The following request headers are available via `ctx.request_headers`: +Request headers are available via `ctx.request_headers`. By default, only the following headers will be exposed: ``` Accept @@ -113,6 +113,8 @@ True-Client-Ip User-Agent ``` +To customize allowed headers, use the `actions.web_hook.header_allowlist` configuration option. + #### Jsonnet templating To send `{ user_id: {some-id} }` in the request body, create the following the [Jsonnet](https://jsonnet.org) template: From 90c146631cfe7cdd2d98c8e63d282fc01e5f5d9b Mon Sep 17 00:00:00 2001 From: Mia Date: Sun, 6 Apr 2025 21:58:22 -0700 Subject: [PATCH 2/2] fix: wording Signed-off-by: Mia --- docs/guides/integrate-with-ory-cloud-through-webhooks.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/integrate-with-ory-cloud-through-webhooks.mdx b/docs/guides/integrate-with-ory-cloud-through-webhooks.mdx index 9c8b664e2..abb429f36 100644 --- a/docs/guides/integrate-with-ory-cloud-through-webhooks.mdx +++ b/docs/guides/integrate-with-ory-cloud-through-webhooks.mdx @@ -91,7 +91,7 @@ template as well. These objects are available through a `ctx` object. #### Accessing request headers -Request headers are available via `ctx.request_headers`. By default, only the following headers will be exposed: +Request headers are available via `ctx.request_headers`. By default, only the following headers are exposed: ``` Accept @@ -113,7 +113,7 @@ True-Client-Ip User-Agent ``` -To customize allowed headers, use the `actions.web_hook.header_allowlist` configuration option. +To customize allowed headers, use the `actions.web_hook.header_allowlist` configuration option. #### Jsonnet templating