rviscomi / capo.js

Get your <head> in order

Home Page:https://rviscomi.github.io/capo.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect origin trial validation for subdomain

rviscomi opened this issue · comments

image

On https://www.youtube.com/ there's an origin trial registered to https://youtube.com with isSubdomain set to true:

{
    "origin": "https://youtube.com:443",
    "feature": "PrivacySandboxAdsAPIs",
    "expiry": "2023-09-19T23:59:59.000Z",
    "isSubdomain": true
}

capo.js warns that the origin is invalid. There shouldn't be any validation warnings for this origin trial because the isSubdomain check permits it to be used by the www subdomain.