Skip to content

Commit

Permalink
feat: add detect.gkd.li to cors url
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed May 28, 2024
1 parent f8b58ae commit a88488c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const corsOkOrigins = new Set([
`https://raw.githubusercontents.com`,
`https://raw.gitmirror.com`,
`https://registry.npmmirror.com`,
'https://detect.gkd.li',
]);

export const isAllowCorsUrl = (targetUrl: string | URL) => {
Expand Down

0 comments on commit a88488c

Please sign in to comment.