Skip to content

Commit

Permalink
chore: allow metadata/gohan data types requests through
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Aug 19, 2024
1 parent d61d80d commit 9445e42
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/proxy_auth_v2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ if (req_method == "GET" or req_method == "OPTIONS") and (
req_uri_no_qp == "/api/metadata/api/public_dataset" or
req_uri_no_qp == "/api/metadata/api/public_rules" or
req_uri_no_qp == "/api/metadata/api/extra_properties_schema_types" or
req_uri_no_qp:sub(1, 26) == "/api/metadata/api/schemas/"
req_uri_no_qp:sub(1, 26) == "/api/metadata/api/schemas/" or
req_uri_no_qp:sub(1, 24) == "/api/metadata/data-types" or
req_uri_no_qp:sub(1, 24) == "/api/gohan/data-types"
) then
-- Clear possible Katsu authorization injections for old remote user middleware
ngx.req.clear_header("X-User")
Expand Down

0 comments on commit 9445e42

Please sign in to comment.