A platform for community discussion. Free, open, simple.
DEV: Fix livereload locally on https (#31776)
Penar Musarajd62db42f116a
diff --git a/app/assets/javascripts/custom-proxy/index.js b/app/assets/javascripts/custom-proxy/index.jsindex 86f872465b5..9a90ae9e16c 100644--- a/app/assets/javascripts/custom-proxy/index.js+++ b/app/assets/javascripts/custom-proxy/index.js@@ -98,7 +98,7 @@ function updateScriptReferences({// ember-cli-live-reload doesn't select ports correctly, so we use _lr/livereload directly// (important for cloud development environments like GitHub CodeSpaces)newElements.unshift(- `<script nonce="${nonce}">window.LiveReloadOptions = { "path": "_lr/livereload", "host": location.hostname, "port": location.port || (location.protocol === "https:" ? 443 : 80) }</script>`,+ `<script nonce="${nonce}">window.LiveReloadOptions = { "path": "_lr/livereload", "host": location.hostname, "port": location.port || (location.protocol === "https:" ? 443 : 80), "https": location.protocol === "https:" }</script>`,`<script async src="/_lr/livereload.js" nonce="${nonce}"></script>`);}