[mirotalksfu] - add cors in config

هذا الالتزام موجود في:
Miroslav Pejic
2024-02-17 16:09:58 +01:00
الأصل 01db0bec7c
التزام e78c8e19e0
2 ملفات معدلة مع 27 إضافات و16 حذوفات

عرض الملف

@@ -35,6 +35,14 @@ module.exports = {
cert: '../ssl/cert.pem',
key: '../ssl/key.pem',
},
/*
origin: Allow specified origin or all origins if not specified es ['https://example.com', 'https://subdomain.example.com', 'http://localhost:3000']
methods: Allow only GET and POST methods
*/
cors: {
origin: '*',
methods: ['GET', 'POST'],
},
/*
The recording will be saved to the directory designated within your Server app/<dir>
Note: if you use Docker: Create the "app/rec" directory, configure it as a volume in docker-compose.yml,