summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/authorization/cedar_authorizer.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/authorization/cedar_authorizer.rs b/src/authorization/cedar_authorizer.rs
index fd27565d..163f5b83 100644
--- a/src/authorization/cedar_authorizer.rs
+++ b/src/authorization/cedar_authorizer.rs
@@ -70,8 +70,10 @@ impl Authorizer for CedarAuthorizer {
None => return false,
};
- if http_request.path == "/" {
- return true;
+ if http_request.host == "sparkle.staging.runway.gitlab.net" {
+ if http_request.method == "GET" && http_request.path == "/" {
+ return true;
+ }
}
let headers = match request