mirror of
https://github.com/nethunterzist/trendyol-analiz
synced 2026-07-01 09:27:03 +00:00
fix: Mixed Content hatası - API_URL boş string yapıldı + categories proxy eklendi
Ne yaptık: - admin-panel/src/config/api.js: API_URL default 'http://127.0.0.1:8001' → '' (boş string) - admin-panel/nginx.conf: /categories/ route için backend proxy location bloğu eklendi Neden yaptık: - HTTPS sitesinden (sslip.io) http://127.0.0.1:8001'e istek Mixed Content hatasına yol açıyordu - Boş string ile relative URL kullanılıyor, nginx /api/ ve /categories/ isteklerini backend'e proxy'liyor - CategoryManagement.jsx /categories/ prefix'li URL kullandığından nginx'te ayrı proxy bloğu gerekiyordu Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
// API Base URL from environment or default
|
||||
export const API_URL = import.meta.env.VITE_API_URL ?? 'http://127.0.0.1:8001'
|
||||
export const API_URL = import.meta.env.VITE_API_URL ?? ''
|
||||
|
||||
// Timeout configurations (in milliseconds)
|
||||
export const TIMEOUT_CONFIG = {
|
||||
|
||||
Reference in New Issue
Block a user