fix(lib/test): fix failing test and invalid cloudflare workers rule

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-04-27 22:25:31 -04:00
parent 9f8ede7fe3
commit 029c79ba28
3 changed files with 5 additions and 7 deletions

View File

@@ -6,8 +6,6 @@
- userAgent.contains("MSIE")
# Trident is the Internet Explorer browser engine
- userAgent.contains("Trident")
# iPods are not in common use
- userAgent.contains("iPod")
# Opera is a fork of chrome now
- userAgent.contains("Presto")
# Windows CE is discontinued
@@ -26,5 +24,5 @@
any:
# This is not released, even Windows 11 calls itself Windows 10
- userAgent.contains("Windows NT 11.0")
# Safari's User-Agent doesn't contain Safari
- (!userAgent.contains("Chrome") && userAgent.contains("Safari"))
# iPods are not in common use
- userAgent.contains("iPod")

View File

@@ -1,4 +1,4 @@
- name: cloudflare-workers
expression: >
"Cf-Worker" in headers
headers_regex:
CF-Worker: .*
action: DENY

View File

@@ -83,7 +83,7 @@ func TestCVE2025_24369(t *testing.T) {
Next: http.NewServeMux(),
Policy: pol,
CookieDomain: "local.cetacean.club",
CookieDomain: ".local.cetacean.club",
CookiePartitioned: true,
CookieName: t.Name(),
})