discourse/app/assets/javascripts/custom-proxy
Penar Musaraj d62db42f11
DEV: Fix livereload locally on https (#31776)
Previously, I was getting this error in the JS console:

```
livereload.js:2232 Mixed Content: The page at 'https://DOMAIN/' was
loaded over HTTPS, but attempted to connect to the insecure WebSocket
endpoint 'ws://DOMAIN:443/_lr/livereload'. This request has been blocked;
this endpoint must be available over WSS.
````

Adding a `https: true` option seems to fix the problem when running the
local server over an https proxy. (It'll be marked as `false` when the
protocol isn't https.)

This isn't just a warning, opening `/tests` is delayed about 10-20
seconds.

---------

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
2025-03-13 09:05:39 -04:00
..
.npmrc
index.js DEV: Fix livereload locally on https (#31776) 2025-03-13 09:05:39 -04:00
package.json DEV: Pin pnpm to v9 (#31158) 2025-02-04 09:18:15 +00:00