Skip to content

Commit 2558a45

Browse files
authored
chore: Add leaderboard preview subdomains to allowed origins (#344)
* Add leaderboard preview subdomains to allowed origins * Add comment describing newly added regex
1 parent 51a7051 commit 2558a45

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

stats/lib/app.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ export const createApp = ({
3030
'app://-',
3131
'https://checker-draft.webflow.io',
3232
'https://www.checker.network',
33+
'https://leaderboard.checker.network',
3334
'https://leaderboard-f1i.pages.dev',
34-
'https://leaderboard.checker.network'
35+
// Allow all subdomains of leaderboard-f1i.pages.dev
36+
// generated by Cloudflare Pages preview deployments
37+
/^https:\/\/[^.]+\.leaderboard-f1i\.pages\.dev$/
3538
]
3639
})
3740
app.register(urlData)

0 commit comments

Comments
 (0)