S
S
s4q2021-08-24 22:17:35
JavaScript
s4q, 2021-08-24 22:17:35

How to disable SSL validation?

There is some code that uses Socket.io that needs to run in the browser. The domain to which the hosting with that code is linked is behind Cloudflare. On the same hosting, there is a socket server on port 8080, but when you try to contact it from the JS code, an error occurs

Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint '<URL>'. This request has been blocked; the content must be served over HTTPS.


I installed a self-signed certificate, but another error comes up: net::ERR_CERT_AUTHORITY_INVALID
What can I do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Gavrilov, 2021-08-24
@thexaver

Proxy socket via nginx and cf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question