mirror of
https://github.com/nethunterzist/trendyol-analiz
synced 2026-06-30 17:17:02 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user