Skip to content

Commit cf77d2e

Browse files
David Christofaskulmann
David Christofas
authored andcommitted
end unprotected path prefixes with a slash
1 parent b41382d commit cf77d2e

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

services/proxy/pkg/middleware/authentication.go

+13-13
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,22 @@ var (
4545
}
4646
// _unprotectedPathPrefixes contains paths which don't need to be authenticated.
4747
_unprotectedPathPrefixes = [...]string{
48-
"/files",
49-
"/data",
50-
"/account",
48+
"/files/",
49+
"/data/",
50+
"/account/",
5151
"/s/",
5252
"/external/spaces",
5353
"/apps/openidconnect/redirect",
54-
"/settings",
55-
"/user-management",
56-
"/.well-known",
57-
"/js",
58-
"/css",
59-
"/fonts",
60-
"/icons",
61-
"/themes",
62-
"/signin",
63-
"/konnect",
54+
"/settings/",
55+
"/user-management/",
56+
"/.well-known/",
57+
"/js/",
58+
"/css/",
59+
"/fonts/",
60+
"/icons/",
61+
"/themes/",
62+
"/signin/",
63+
"/konnect/",
6464
}
6565
)
6666

0 commit comments

Comments
 (0)