Marcus Da Coregio преди 2 години
родител
ревизия
8eed8cd13b
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc

+ 2 - 2
docs/modules/ROOT/pages/servlet/authorization/authorize-http-requests.adoc

@@ -562,8 +562,8 @@ http
 ----
 http {
     authorizeHttpRequests {
-        authorize(DispatcherType.FORWARD, permitAll)
-        authorize(DispatcherType.ERROR, permitAll)
+        authorize(DispatcherTypeRequestMatcher(DispatcherType.FORWARD), permitAll)
+        authorize(DispatcherTypeRequestMatcher(DispatcherType.ERROR), permitAll)
         authorize("/endpoint", permitAll)
         authorize(anyRequest, denyAll)
     }