Closed dongguader closed 8 years ago
I got the same problem just today and after quite some searching I found that setting the following option works: hostname: 'localhost'
Where are you setting that? I am not getting any luck having that change the 35729 call
This is what my connect-task in my Gruntfile looks like:
connect: { server: { options: { livereload: true, open: true, hostname: 'localhost' } } }
Hi,
Thanks, the issue is resolved. Somehow on windows, I have to clean browser cache every time to allow the change from 0.0.0.0 to localhost to take effect. Setting it as localhost does work, just need to remember to clean browser cache.
I ran into this same issue. Ctrl
+ F5
to refresh and override the browser cache worked for me in Chrome after changing the hostname
(haven't confirmed in Firefox, but it should work).
is there a way to configure where the hostname of livereload?
In my use case, connection to http://0.0.0.0:35729/livereload.js?snipver=1 is blocked due to security policy.
I had to downgrade to 0.8.0, which injects the following, and accessing livereload through localhost.