fix: Mixed Content hatası - HTTPS API URL ve CORS

Ne yaptık:
- VITE_API_URL http:// → https:// olarak değiştirildi
- CORS whitelist'e https:// origin'ler eklendi

Neden yaptık:
- Coolify/Traefik HTTPS'e yönlendiriyor, frontend https:// üzerinden yükleniyor
- Tarayıcı http:// API isteklerini Mixed Content olarak blokluyordu

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
furkanyigit34
2026-03-29 02:40:13 +03:00
parent bb333208ab
commit 5d976b26f4
2 changed files with 3 additions and 1 deletions

View File

@@ -300,7 +300,9 @@ allowed_origins = [
"http://194.187.253.230",
# Coolify Traefik proxy (sslip.io)
"http://trendyol.194.187.253.230.sslip.io",
"https://trendyol.194.187.253.230.sslip.io",
"http://trendyol-api.194.187.253.230.sslip.io",
"https://trendyol-api.194.187.253.230.sslip.io",
]
# Add production domain from environment variable

View File

@@ -86,7 +86,7 @@ services:
dockerfile: Dockerfile
args:
# Backend API URL via Coolify Traefik proxy
VITE_API_URL: http://trendyol-api.194.187.253.230.sslip.io
VITE_API_URL: https://trendyol-api.194.187.253.230.sslip.io
restart: unless-stopped
ports: