Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

theme preview requests local files over https #289

Open
kosecki123 opened this issue May 9, 2019 · 3 comments
Open

theme preview requests local files over https #289

kosecki123 opened this issue May 9, 2019 · 3 comments

Comments

@kosecki123
Copy link

After executing

zat theme preview

the browser is trying to fetch the localhost resource over https, since the localhost doesn't support this scheme, it fails with error making the site not able to render preview properly.

error

image

@abdul
Copy link
Contributor

abdul commented May 31, 2020

@kosecki123 That happens because theme preview uses live-reloading feature, and script and stylesheet is served from local host by zat theme preview. You can disable livereload, then you will have to refresh the browser manually.

You are seeing this error because of some other issue related to theme preview; it's actually prone to many similar issues -- won't reload or refresh or upload. I have patched a version of zat to make it work with external live-reload.

@abdul
Copy link
Contributor

abdul commented May 31, 2020

@kosecki123 I read your post again, and realize you are concerned about something else. Please ignore my previous comment, I am not deleting it but keeping it as it is.

Have you checked if there is some kind of extension in your browser that's changing protocol scheme? What happens if you make a curl request to http://localhost:4567/guide/script.js, probably open it directly in another browser.

Thank you

@ilPas
Copy link

ilPas commented Jan 22, 2021

I have same problems.
I have emailed Zendesk support but i doesn't have resolved it. :(
There is a solution @kosecki123 ?
@abdul i have tested your solution but on my installation doesn't work.
Tt is absurd that a company like zendesk does not fix these bugs!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants