feat: harden backend security with HMAC verification, SSL validation, and documentation updates while removing legacy scripts.

This commit is contained in:
Hamza-Ayed
2026-07-08 22:10:01 +03:00
parent 628e169552
commit 21877153eb
20 changed files with 6267 additions and 17 deletions
+2 -1
View File
@@ -85,7 +85,8 @@ function sendSilentFcmNotification($token, $data) {
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($fields));
$result = curl_exec($ch);