Skip to content

Commit ba8f0af

Browse files
committed
Add policy context fields
1 parent c0f2090 commit ba8f0af

File tree

1 file changed

+20
-2
lines changed
  • src/content/docs/cloudflare-one/policies/gateway/http-policies

1 file changed

+20
-2
lines changed

src/content/docs/cloudflare-one/policies/gateway/http-policies/index.mdx

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,29 @@ API value: `redirect`
208208

209209
</Details>
210210

211-
The Redirect action allows you to redirect matched HTTP requests to a different URL you specify.
211+
The Redirect action allows you to redirect matched HTTP requests to a different URL you specify. For example, if your users browse to the public web page of a SaaS app, you can redirect them to your own self-hosted instance, a single sign-on page, or an internal policy page.
212212

213213
#### Policy URL redirect
214214

215-
When you turn on **Send policy context**, Gateway will include context in logs.
215+
In **Policy URL redirect**, you can define what URL to redirect matched requests to.
216+
217+
When you turn on **Send policy context**, Gateway will send the original site URL and redirect context to the redirected URL. Full list of fields:
218+
219+
<Details header="Policy context fields">
220+
221+
- User email
222+
- Site URL
223+
- URL Category
224+
- Original HTTP Referer
225+
- Rule ID
226+
- Source IP
227+
- Device ID
228+
- Application Name
229+
- Account ID
230+
- Connection ID
231+
- Request ID
232+
233+
</Details>
216234

217235
When you turn on **Preserve original URL and query string**, Gateway will append the original path and query string to the redirect URL. For example, if the original URL is `example.com/path/to/page?query&string`, Gateway will redirect it to `internalapp.com/path/to/page?query&string`.
218236

0 commit comments

Comments
 (0)