File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
stubbornjava-webapp/src/main/java/com/stubbornjava/webapp Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ private static HttpHandler contentSecurityPolicy(HttpHandler delegate) {
4747 }
4848 // {{end:csp}}
4949
50+ // {{start:middleware}}
5051 private static HttpHandler wrapWithMiddleware (HttpHandler next ) {
5152 return MiddlewareBuilder .begin (PageRoutes ::redirector )
5253 .next (handler -> CustomHandlers .securityHeaders (handler , ReferrerPolicy .STRICT_ORIGIN_WHEN_CROSS_ORIGIN ))
@@ -58,6 +59,7 @@ private static HttpHandler wrapWithMiddleware(HttpHandler next) {
5859 .next (StubbornJavaWebApp ::exceptionHandler )
5960 .complete (next );
6061 }
62+ // {{end:middleware}}
6163
6264 // These routes do not require any authentication
6365 private static final HttpHandler basicRoutes = new RoutingHandler ()
You can’t perform that action at this time.
0 commit comments