Recent searches


No recent searches

Working on a theme locally



image avatar

Ryan McGrew

Zendesk Product Manager

Edited Jun 21, 2024


4

7

7 comments

When I preview my theme via $zat theme preview and paste the /start link in my Chrome URL, I receive a 'blocked by CORS policy' error in the console. The origin is my own subdomain URL as expected, and it attempts to fetch at *myMappedDomain*/hc/activity. , which is a URL that throws a 404 error so as far as I can tell, the theme loads trying to fetch data from a page that doesnt exist. This is not part of our code in the templates.

I did allow for mixed contents to be loaded as per a this article, but there is no mention specifically about the CORS issue.

While I do use ZAT Tools in this case the troubleshooting step of the Troubleshooting CORS article:

As part of the Apps framework, a back-end proxy server is available via the client.request() call. Use this proxy by setting cors:false in the client.request's settings (note: false is also the setting's default value).

does not help since I have the "special case" of previewing the Zendesk Theme which I downloaded from the Guide, there are no explicit client requests being made in the theme files .


/thanks,

Diego

0


image avatar

Cheeny Aban

Zendesk Customer Care

Hi Diego,

We have the CORS Troubleshooting that will surely help you find a solution for this issue.

All the best

 

0


"Important: If you set up an integration with GitHub, making any modifications to your theme in Guide will break the GitHub integration."

Is there any way to reverse this?

 

0


image avatar

Dane

Zendesk Engineering

Hi Miguel,
 
As it turns out, the only method is to perform the integration again once it breaks.

0


image avatar

Gorka Cardona-Lauridsen

Zendesk Product Manager

Hi All, 

We are looking to talk to people that have code customized a Help Center theme or tried and failed to code-customize a theme.

If you are up for sharing your feedback through a 30 min video interview, please sign up and answer 3 short survey questions at the end of the form. We would love to hear from you!

Sign up here.

Looking forward to talking to you!

Gorka Cardona-Lauridsen
Sr. Product Manager, Zendesk Guide 

0


Gorka Cardona-Lauridsen 

I have two questions for editing theme locally, it would be really appreciated if you can address these questions.

  1. Does Zendesk have a library of all editable assets outside of CSS and Java Script?
  2. Does Zendesk list out what attributes within Zendesk are editable from CSS and Java Script separate from the editable assets?

0


image avatar

Paolo

Zendesk Engineering

Hi Zaffar,
 
You can find all the resources for our theme here: https://github.com/zendesk/copenhagen_theme
 
Best,
Paolo | Technical Support Engineer | Zendesk

0


Please sign in to leave a comment.