feat: add los broxas cdn to security policy

This commit is contained in:
Zamitto 2024-06-12 23:03:49 -03:00
parent 83122bb864
commit 56f0439aaf
3 changed files with 3 additions and 3 deletions

View file

@ -25,6 +25,6 @@ const gamesArray = z.array(
export const userProfileSchema = z.object({ export const userProfileSchema = z.object({
username: z.string(), username: z.string(),
game: gamesArray, libraryGames: gamesArray,
recentGames: gamesArray, recentGames: gamesArray,
}); });

View file

@ -24,7 +24,7 @@ const getUserProfile = async (
); );
const libraryGames = await Promise.all( const libraryGames = await Promise.all(
profile.game.map(async (game) => { profile.libraryGames.map(async (game) => {
const steamGame = await steamGamesWorker.run(Number(game.objectId), { const steamGame = await steamGamesWorker.run(Number(game.objectId), {
name: "getById", name: "getById",
}); });

View file

@ -6,7 +6,7 @@
<title>Hydra</title> <title>Hydra</title>
<meta <meta
http-equiv="Content-Security-Policy" http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://steamcdn-a.akamaihd.net https://shared.akamai.steamstatic.com https://cdn.cloudflare.steamstatic.com https://cdn2.steamgriddb.com https://cdn.akamai.steamstatic.com; media-src 'self' data: https://steamcdn-a.akamaihd.net https://cdn.cloudflare.steamstatic.com https://cdn2.steamgriddb.com https://cdn.akamai.steamstatic.com https://shared.akamai.steamstatic.com;" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https://cdn.losbroxas.org https://steamcdn-a.akamaihd.net https://shared.akamai.steamstatic.com https://cdn.cloudflare.steamstatic.com https://cdn2.steamgriddb.com https://cdn.akamai.steamstatic.com; media-src 'self' data: https://cdn.losbroxas.org https://steamcdn-a.akamaihd.net https://cdn.cloudflare.steamstatic.com https://cdn2.steamgriddb.com https://cdn.akamai.steamstatic.com https://shared.akamai.steamstatic.com;"
/> />
</head> </head>
<body style="background-color: #1c1c1c"> <body style="background-color: #1c1c1c">