agendash
Version:
Dashboard for Agenda job scheduler
15 lines • 478 B
JavaScript
/**
* Content Security Policy configuration for Agendash
* Since we now bundle all frontend assets with Vite, we only need 'self'
*/
const CSP = {
'default-src': ["'self'"],
'script-src': ["'self'"],
'style-src': ["'self'", "'unsafe-inline'"],
'font-src': ["'self'"],
'img-src': ["'self'", 'data:']
};
export const cspHeader = Object.entries(CSP)
.map(([type, values]) => `${type} ${values.join(' ')}`)
.join('; ');
//# sourceMappingURL=csp.js.map