mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
feat: add los broxas cdn to security policy
This commit is contained in:
parent
83122bb864
commit
56f0439aaf
3 changed files with 3 additions and 3 deletions
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
|
@ -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",
|
||||||
});
|
});
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue