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

Comments

7 comments

  • Avatar
    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'.

  • Avatar
    Michal Wysocki

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


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

  • Avatar
    Mike

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


     


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


     


    ?

  • Avatar
    Joseph May

    @Mike-


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

  • Avatar
    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. :-|

  • Avatar
    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.

  • Avatar
    Benjamin

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

    Thanks a lot!

Please sign in to leave a comment.

Powered by Zendesk