mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-25 23:45:13 +00:00
upd: header
This commit is contained in:
parent
95df69b06c
commit
fa30404048
1 changed files with 1 additions and 8 deletions
|
@ -41,14 +41,7 @@ export class MastodonApiServerService {
|
|||
});
|
||||
|
||||
fastify.addHook('onRequest', (request, reply, done) => {
|
||||
reply.header('Content-Security-Policy', `default-src * data: mediastream: blob: filesystem: about: ws: wss: 'unsafe-eval' 'wasm-unsafe-eval' 'unsafe-inline';
|
||||
script-src * data: blob: 'unsafe-inline' 'unsafe-eval';
|
||||
connect-src * data: blob: 'unsafe-inline';
|
||||
img-src * data: blob: 'unsafe-inline';
|
||||
frame-src * data: blob: ;
|
||||
style-src * data: blob: 'unsafe-inline';
|
||||
font-src * data: blob: 'unsafe-inline';
|
||||
frame-ancestors * data: blob: 'unsafe-inline';`);
|
||||
reply.header('Access-Control-Allow-Origin', '*');
|
||||
done();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue