return 401 instead of redirect #653
Unanswered
vijaypothireddy
asked this question in
Q&A
Replies: 1 comment 1 reply
-
just use Location directives for /assets or /recline or /test or /src as in:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to implement OIDCUnAuthAction option.
i want to return 401
if it is XMLHttpRequest or
if the request is not text/html or
if the request is /assets or /recline or /test or /src
OIDCUnAuthAction 401 "%{REQUEST_URI} =~ m#^/assets*$# || %{REQUEST_URI} =~ m#^/recline*$# || %{REQUEST_URI} =~ m#^/test*$# || %{REQUEST_URI} =~ m#^/src*$# || %{HTTP:X-Requested-With} == 'XMLHttpRequest' || ( ( %{HTTP_ACCEPT} !~ m#text/html# ) && ( %{HTTP_ACCEPT} !~ m#application/xhtml+xml# ) && ( %{HTTP_ACCEPT} !~ m#*/*# ) )"
but when i request resource under /recline i get redirect .
my reverse proxy conf
....
can some one explain whats wrong with syntax or config ?
~
Beta Was this translation helpful? Give feedback.
All reactions