corsu siktim

This commit is contained in:
salvacybersec
2025-11-11 07:40:02 +03:00
parent 992ccf056b
commit c898ca4a65
2 changed files with 32 additions and 42 deletions

View File

@@ -166,14 +166,9 @@ exports.updateSystemSettings = async (req, res, next) => {
});
}
// Update CORS configuration if available
if (req.app && req.app.updateCorsSettings) {
await req.app.updateCorsSettings();
}
res.json({
success: true,
message: 'Sistem ayarları güncellendi. CORS ayarları uygulandı.',
message: 'Sistem ayarları güncellendi.',
});
} catch (error) {
next(error);