[mirotalksfu] - add iframeApi, update dep
هذا الالتزام موجود في:
@@ -58,7 +58,7 @@ dev dependencies: {
|
||||
* @license For commercial or closed source, contact us at license.mirotalk@gmail.com or purchase directly via CodeCanyon
|
||||
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-sfu-webrtc-realtime-video-conferences/40769970
|
||||
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
|
||||
* @version 1.7.82
|
||||
* @version 1.7.83
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -369,7 +369,16 @@ function startServer() {
|
||||
// Start the app
|
||||
app.set('trust proxy', trustProxy); // Enables trust for proxy headers (e.g., X-Forwarded-For) based on the trustProxy setting
|
||||
app.use(helmet.noSniff()); // Enable content type sniffing prevention
|
||||
app.use(express.static(dir.public));
|
||||
// Use all static files from the public folder
|
||||
app.use(
|
||||
express.static(dir.public, {
|
||||
setHeaders: (res, filePath) => {
|
||||
if (filePath.endsWith('.js')) {
|
||||
res.setHeader('Content-Type', 'application/javascript');
|
||||
} //...
|
||||
},
|
||||
}),
|
||||
);
|
||||
app.use(cors(corsOptions));
|
||||
app.use(compression());
|
||||
app.use(express.json({ limit: '50mb' })); // Handles JSON payloads
|
||||
|
||||
المرجع في مشكلة جديدة
حظر مستخدم