Building a server-side app - Part 1: Core concepts

Have more questions? Submit a request

7 Comments

  • Michal Wysocki

     It does not work. I have my test app hosted on https://X.X.X.X/ server. The home page loads fine but when i click on the link that should take me to login page https://X.X.X.X/Account/Login I get an error; Refused to display 'https://X.X.X.X/Account/Login?origin=https%3A%2F%2F<OUR DOMAIN>.zendesk.com&app_guid=<APP GUID>' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

    0
  • Michal Wysocki

    My server app was blocking it. The following resolved it:


    protected void Application_Start()
    {
    ...
    AntiForgeryConfig.SuppressXFrameOptionsHeader = true;
    }

    0
  • Mike

    Is there a way to set the sidebar URL using a paramter?


     


    like so ... https://{{setting.username}}.mysaas.com


     


    ?

    0
  • Joseph May

    @Mike-


    Currently using settings placeholders is only for domainWhitelist. More info can be found at this thread.

    0
  • Benjamin

    When developing and testing, what app_guid should I use? Currently ZAFClient initialization fails because of lack of app_guid.

     

    Footnote: My code was working 3 days ago without an app_guid, but not anymore. :-|

    0
  • Charles Nadeau

    Hi Benjamin,

    You retrieve the app_guid parameter from the initial page request by Support when your app starts. For details on getting the parameter, see:

    https://develop.zendesk.com/hc/en-us/articles/360001075008#params

    Thanks.

    0
  • Benjamin

    Charles, thanks for your swift reply. You pointed me in the right direction so now everything is clear.

    Thanks a lot!

    0

Please sign in to leave a comment.

Powered by Zendesk