Skip to content

Commit 7dc8cf4

Browse files
committed
fix: update manifest
1 parent 32a3e78 commit 7dc8cf4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/manifest.ts

+10-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import type { Manifest } from 'webextension-polyfill';
88

99
export const Endpoints = {
1010
trakt: {
11+
Domain: 'https://trakt.tv',
12+
SubDomain: 'https://*.trakt.tv',
1113
Production: 'https://api.trakt.tv',
1214
Staging: 'https://api-staging.trakt.tv',
1315
},
@@ -48,7 +50,14 @@ export const manifest: Manifest.WebExtensionManifest = {
4850
matches: [`${Endpoints.trakt.Production}/*`, `${Endpoints.trakt.Staging}/*`, `${Endpoints.tvdb}/*`, `${Endpoints.tmdb.redirect}/*`],
4951
},
5052
],
51-
host_permissions: [`${Endpoints.trakt.Production}/*`, `${Endpoints.trakt.Staging}/*`, `${Endpoints.tvdb}/*`, `${Endpoints.tmdb.api}/*`],
53+
host_permissions: [
54+
`${Endpoints.trakt.Domain}/*`,
55+
`${Endpoints.trakt.SubDomain}/*`,
56+
`${Endpoints.trakt.Production}/*`,
57+
`${Endpoints.trakt.Staging}/*`,
58+
`${Endpoints.tvdb}/*`,
59+
`${Endpoints.tmdb.api}/*`,
60+
],
5261
content_security_policy: {
5362
// Adds localhost for vite hot reload
5463
extension_pages: isDev

0 commit comments

Comments
 (0)