Skip to content

Commit 1a925a0

Browse files
authored
feat: add kratos webhook header allowlist config details (#2100)
* feat: add kratos webhook header allowlist config details Signed-off-by: Mia <m@yarn.network> * fix: wording Signed-off-by: Mia <m@yarn.network> --------- Signed-off-by: Mia <m@yarn.network>
1 parent 8ee0132 commit 1a925a0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/guides/integrate-with-ory-cloud-through-webhooks.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ template as well. These objects are available through a `ctx` object.
9191

9292
#### Accessing request headers
9393

94-
The following request headers are available via `ctx.request_headers`:
94+
Request headers are available via `ctx.request_headers`. By default, only the following headers are exposed:
9595

9696
```
9797
Accept
@@ -113,6 +113,8 @@ True-Client-Ip
113113
User-Agent
114114
```
115115

116+
To customize allowed headers, use the `actions.web_hook.header_allowlist` configuration option.
117+
116118
#### Jsonnet templating
117119

118120
To send `{ user_id: {some-id} }` in the request body, create the following the [Jsonnet](https://jsonnet.org) template:

0 commit comments

Comments
 (0)