2024.11.0-yumechinokuni.7 #41
1 changed files with 1 additions and 0 deletions
|
@ -503,6 +503,7 @@ export class ClientServerService {
|
|||
|
||||
// ServiceWorker
|
||||
fastify.get('/sw.js', async (request, reply) => {
|
||||
reply.header('content-security-policy', `default-src \'self'; connect-src \'self\'${ this.config.mediaProxy ? ` ${new URL(this.config.mediaProxy).origin}` : '' }`);
|
||||
return await reply.sendFile('/sw.js', swAssets, {
|
||||
maxAge: ms('10 minutes'),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue