ErdemSağlam
Hectopat
- Katılım
- 5 Nisan 2018
- Mesajlar
- 137
Daha fazla
- Cinsiyet
- Erkek
Arkadaşlar merhaba. Üzerinde çalıştığım projemde bir sunucudan websocket protokolü ile veri çekiyorum. Lakin sunucu güvenli protokolden iletişim sağlamıyor yani (wss değil ws). Kendi sunucumda HTTPS ile çalışıyor. Dolayısı ile HTTPS, websocket bağlantısını güvenli olmadığı için bloke ediyor. Bu sorunu nasıl aşabilirim? Tarayıcı konsol ekranında şu hataları gösteriyor:
Hata 1 -> Mixed Content: The page at 'Welcome to WHMCS!' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://ipadresi : protokol/'. This request has been blocked; this endpoint must be available over WSS.
Hata 2 -> Uncaught DOMException: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
at Welcome to WHMCS!
Sitenin bir de subdomaini var. Bunu kullanarak da sorunu çözmem mümkün müdür?
Son bir soru fetch veya benzeri bir yapı kullanarak bir JS dosyasından başka bir js dosyasına veri post etsem, bu postu JS ile yakalayabilir miyim?
Hata 1 -> Mixed Content: The page at 'Welcome to WHMCS!' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://ipadresi : protokol/'. This request has been blocked; this endpoint must be available over WSS.
Hata 2 -> Uncaught DOMException: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.
at Welcome to WHMCS!
Sitenin bir de subdomaini var. Bunu kullanarak da sorunu çözmem mümkün müdür?
Son bir soru fetch veya benzeri bir yapı kullanarak bir JS dosyasından başka bir js dosyasına veri post etsem, bu postu JS ile yakalayabilir miyim?
Son düzenleme: