Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 836 Bytes

README.md

File metadata and controls

31 lines (26 loc) · 836 Bytes

radio wrapper investigation

Application wrapper for Soviet Wave Radio site (source-code)

  • cap for Capacitor approach
  • tau for Tauri approach (v2 beta)

CSP

const hosts = [
    "https://sovietwave.su/",
    "https://static.nay.su/",
    "https://mc.yandex.com/",
    "https://mc.yandex.ru/",
    "https://station.waveradio.org/",
    "https://core.waveradio.org/",
];
const srcHosts = hosts.join(" ");
callback({
    responseHeaders: {
    ...details.responseHeaders,
    'Content-Security-Policy': [
        electronIsDev
        ? `default-src ${srcHosts} ${customScheme}://* 'unsafe-inline' devtools://* 'unsafe-eval' data:`
        : `default-src ${srcHosts} ${customScheme}://* 'unsafe-inline' data:`,
    ],
    },
});