Skip to content

Conversation

@hperl
Copy link
Collaborator

@hperl hperl commented Dec 12, 2025

Support for forwarding user request headers to HTTP channel webhooks

A number of common HTTP request headers (see below) are now forwarded to the
webhook when delivering one-time codes via SMS or email. These headers are
available in the ctx.request_headers field in the Jsonnet templates for the
webhook request body.

The list of forwarded headers is the same as for the webhooks in Ory Actions:

Accept
Accept-Encoding
Accept-Language
Content-Length
Content-Type
Origin
Priority
Referer
Sec-Ch-Ua
Sec-Ch-Ua-Mobile
Sec-Ch-Ua-Platform
Sec-Fetch-Dest
Sec-Fetch-Mode
Sec-Fetch-Site
Sec-Fetch-User
True-Client-Ip
User-Agent
X-Forwarded-Host
Ory-Base-Url-Rewrite
Ory-Base-Url-Rewrite-Token
X-Ory-Original-Host
Ory-No-Custom-Domain-Redirect
Cf-Ipcountry

@hperl hperl requested review from aeneasr and vinckr as code owners December 12, 2025 11:29
@vinckr vinckr added the upstream Issue is caused by an upstream dependency. label Dec 15, 2025
@hperl hperl merged commit 9c9e0d2 into master Jan 12, 2026
9 checks passed
@hperl hperl deleted the sms-request-headers branch January 12, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

upstream Issue is caused by an upstream dependency.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants