From 5d976b26f4461672de8c954238683ae8a8487191 Mon Sep 17 00:00:00 2001 From: furkanyigit34 <134547018+furkanyigit34@users.noreply.github.com> Date: Sun, 29 Mar 2026 02:40:13 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20Mixed=20Content=20hatas=C4=B1=20-=20HTTP?= =?UTF-8?q?S=20API=20URL=20ve=20CORS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- backend/main.py | 2 ++ docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index df5a30b..892edce 100644 --- a/backend/main.py +++ b/backend/main.py @@ -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 diff --git a/docker-compose.yml b/docker-compose.yml index a421489..c0cdc78 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: