Skip to content

Commit

Permalink
enh: added docs about org.apache.shiro.ee.redirect.disabled web.xml p…
Browse files Browse the repository at this point in the history
…arameter
  • Loading branch information
lprimak committed Sep 20, 2024
1 parent a41a068 commit c75daf8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/site/content/jakarta-ee.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit c75daf8

Please sign in to comment.