mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-21 12:27:02 -04:00
feat(cloud): always allow cloud.equicord.org
Some checks are pending
Test / Test (push) Waiting to run
Some checks are pending
Test / Test (push) Waiting to run
This commit is contained in:
parent
fed063f5c4
commit
e5601e7d56
2 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,7 @@ export const CspPolicies: PolicyMap = {
|
|||
"ws.audioscrobbler.com": ConnectSrc, // Last.fm API
|
||||
"translate-pa.googleapis.com": ConnectSrc, // Google Translate API
|
||||
"*.vencord.dev": ImageSrc, // VenCloud (api.vencord.dev) and Badges (badges.vencord.dev)
|
||||
"cloud.equicord.org": ConnectSrc, // EquiCLoud (cloud.equicord.org)
|
||||
"manti.vendicated.dev": ImageSrc, // ReviewDB API
|
||||
"decor.fieryflames.dev": ConnectSrc, // Decor API
|
||||
"ugc.decor.fieryflames.dev": ImageSrc, // Decor CDN
|
||||
|
|
|
@ -35,6 +35,7 @@ export async function checkCloudUrlCsp() {
|
|||
|
||||
const { host } = getCloudUrl();
|
||||
if (host === "api.vencord.dev") return true;
|
||||
if (host === "cloud.equicord.org") return true;
|
||||
|
||||
if (await VencordNative.csp.isDomainAllowed(Settings.cloud.url, ["connect-src"])) {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue