This is an automated email from the ASF dual-hosted git repository.

lprimak pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/shiro-site.git


The following commit(s) were added to refs/heads/main by this push:
     new c75daf89c enh: added docs about org.apache.shiro.ee.redirect.disabled 
web.xml parameter
c75daf89c is described below

commit c75daf89c2425e136c766752e2ad264dff7f0fed
Author: lprimak <[email protected]>
AuthorDate: Fri Sep 20 11:00:15 2024 -0500

    enh: added docs about org.apache.shiro.ee.redirect.disabled web.xml 
parameter
---
 src/site/content/jakarta-ee.adoc | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/site/content/jakarta-ee.adoc b/src/site/content/jakarta-ee.adoc
index 2d9fb29ce..3d3c0ae75 100644
--- a/src/site/content/jakarta-ee.adoc
+++ b/src/site/content/jakarta-ee.adoc
@@ -223,6 +223,17 @@ backend server1
 ...
 ----
 
+As an optimization technique, Shiro tries to issue all redirection according 
to the `X-Forwarded-Proto` header. If the header is not present, Shiro will use 
the current request scheme.
+If this behavior is not desired, you can add the following property into 
`web.xml`
+[source,xml]
+.Disable redirection optimization
+----
+<context-param>
+    <param-name>org.apache.shiro.ee.redirect.disabled</param-name>
+    <param-value>true</param-value>
+</context-param>
+----
+
 ==== Using CDI Beans in shiro.ini
 Below is an example of using a CDI bean and assign its property to a variable 
in shiro.ini
 [source,java]

Reply via email to