fix: Pastikan CORS headers ditambahkan ke error response juga, tambah DEPLOY_CORS_FIX.md
This commit is contained in:
@@ -112,18 +112,21 @@ fetch("https://api.btekno.cloud/health", {
|
||||
**Solusi:**
|
||||
|
||||
1. **Restart PHP-FPM** (PENTING!):
|
||||
|
||||
```bash
|
||||
systemctl reload php-fpm-83 # Sesuaikan dengan PHP version
|
||||
# Atau via aaPanel: Website -> PHP -> Service Management -> Reload
|
||||
```
|
||||
|
||||
2. **Clear PHP Opcache**:
|
||||
|
||||
```bash
|
||||
php -r "opcache_reset();"
|
||||
# Atau via aaPanel: Website -> PHP -> Opcache -> Clear Cache
|
||||
```
|
||||
|
||||
3. **Cek apakah code sudah ter-pull**:
|
||||
|
||||
```bash
|
||||
cd /www/wwwroot/api.btekno.cloud/api
|
||||
git pull origin main
|
||||
|
||||
Reference in New Issue
Block a user