GET https://siteadi.com:3000/socket.io/?...ling&t=PF5gEDy net::ERR_SSL_PROTOCOL_ERROR
Sockete bağlanmaya çalışırken bu hatası alıyorum.
ssl var ancak port'a girmeye çalıştığımda ERR_SSL_PROTOCOL_ERROR hatası alıyorum. Ayrıca http bağlantısı denediğimde ise
Mixed Content: The page at 'https://siteadi.com/chat#5' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://sitadi.com:3000/socket.io/?EIO=4&transport=polling&t=PF5gUCK'. This request has been blocked; the content must be served over HTTPS.
Hatası ile karşılaşıyorum.
3000 Portunda ssl hatası.
1
●58
- 14-12-2024, 18:30:59const sslOptions = {
key: fs.readFileSync('ssl/private-key.pem'), // replace with the path to your private key
cert: fs.readFileSync('ssl/certificate.pem'), // replace with the path to your SSL certificate
ca: fs.readFileSync('ssl/ca-certificate.pem') // optional, needed if you're using a full certificate chain
};
const server = https.createServer(sslOptions, app);
Bu şekilde çözüm buldum.