mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-02 08:19:23 +02:00
authorize,proxy: remove support for paths within the from parameter
This commit is contained in:
parent
5ad0e0ebdc
commit
85a1a6d013
5 changed files with 6 additions and 15 deletions
|
@ -292,14 +292,6 @@ func TestRouteMatcherFuncFromPolicy(t *testing.T) {
|
|||
"https://www.google.com", false,
|
||||
"should not match when host is different from source host"},
|
||||
|
||||
// path prefix in source
|
||||
{"https://www.example.com/admin", "", "", "",
|
||||
"https://www.example.com/admin/someaction", true,
|
||||
"should match when path begins with source path"},
|
||||
{"https://www.example.com/admin", "", "", "",
|
||||
"https://www.example.com/notadmin", false,
|
||||
"should not match when path does not begin with source path"},
|
||||
|
||||
// path prefix
|
||||
{"https://www.example.com", "/admin", "", "",
|
||||
"https://www.example.com/admin/someaction", true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue