mirror of
https://github.com/nethunterzist/trendyol-analiz
synced 2026-07-01 09:27:03 +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",
|
"http://194.187.253.230",
|
||||||
# Coolify Traefik proxy (sslip.io)
|
# Coolify Traefik proxy (sslip.io)
|
||||||
"http://trendyol.194.187.253.230.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",
|
"http://trendyol-api.194.187.253.230.sslip.io",
|
||||||
|
"https://trendyol-api.194.187.253.230.sslip.io",
|
||||||
]
|
]
|
||||||
|
|
||||||
# Add production domain from environment variable
|
# Add production domain from environment variable
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ services:
|
|||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
args:
|
args:
|
||||||
# Backend API URL via Coolify Traefik proxy
|
# 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
|
restart: unless-stopped
|
||||||
|
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
Reference in New Issue
Block a user