Commit Graph

9 Commits

Author SHA1 Message Date
51ce823b45 Fix: Use window.location.origin for API base URL in browser
treaty from @elysiajs/eden doesn't support relative URLs like '/'
This caused 'ERR_NAME_NOT_RESOLVED' when trying to access 'https://api/fileStorage/create'

Solution:
- Client-side: Use window.location.origin (e.g., https://desa-darmasaba-stg.wibudev.com)
- Server-side dev: Use localhost:3000
- Server-side prod: Use NEXT_PUBLIC_BASE_URL env var

This ensures the API calls use the correct domain in all environments.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-12 14:14:55 +08:00
c6c3eebadf Fix: CORS and API base URL for music create in staging
- Update CORS config to allow all origins (wildcard first) for better staging support
- Change API fetch base URL from absolute to relative (/) to prevent mixed content blocking
- Add detailed logging in music create page for better debugging
- Update .env.example with better NEXT_PUBLIC_BASE_URL documentation
- Add MUSIK_CREATE_ANALYSIS.md with comprehensive error analysis

Fixes ERR_BLOCKED_BY_CLIENT error when creating music in staging environment

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-03-12 11:27:51 +08:00
2a26db6e17 Tambahan Fix Form Di Menu Landing Page & PPID IKM 2025-09-25 16:21:44 +08:00
8a34a122d0 Tambahan Di menu PPID 2025-05-09 10:35:30 +08:00
bipproduction
a72e6405e6 tambahannya 2025-02-17 10:38:25 +08:00
bipproduction
455693b2ce tambahannya 2025-02-17 10:36:25 +08:00
bipproduction
050bdcdc00 ini tambahannya 2025-02-16 17:29:55 +08:00
bipproduction
c8163cce76 ini tambahannya 2025-02-16 17:29:44 +08:00
bipproduction
2115af8126 tambahannnya 2025-02-15 21:56:18 +08:00