Accessing external data from Help Center

5 Comments

  • Alex Pereira

    After trying different things, I realized the problem is that I needed to setup and use CORS for this. Which I have done yesterday, and it is working now. I guess I was confused with the reason for it working on the App but not on the Help Center pages. For the App, the ajax requests happen through Zendesk Proxy, and I am assuming that for the Help Center there is no Proxy available.

    One question I still have is with regards to storing the API Token. Does the Help Center offer any framework for this? 

    Thanks!

    0
  • Jessie Schutz
    Zendesk team member

    Hey Alex! Thanks for coming back and sharing what you figured out! I'll see if I can find someone to answer your question about the API token. :)

    0
  • Klara Audren

    Hello Alex,

    Unfortunalty the help center does not provide any framework for the storing the API token also we are currently unable to apply the apps framework to the help center.

     

    0
  • Alex Pereira

    Thanks for the replies. 

    Is there a suggested method for handling/storing external API tokens? 

    For instance, if I had to access Zendesk's API from the Help Center. Maybe we wanted to retrieve some information to show the user on one of the pages on the Help Center, where would I store my Zendesk's API token?

    Clearly, just hard-coding it in the Javascript code would not be best practice, because any user with a little bit of web development experience would be able to see it, and use it.

    Thanks!

     

     

    0
  • Ferran Barneda Delporte

    Hi Alex,

    As Klara said before, the Help Center does not provide any framework for the storing the API token. Sorry about that.

    0

Please sign in to leave a comment.

Powered by Zendesk