Issue Page Target Web Panel - target url error

target url in glance or content is relative to the app’s baseUrl, but I am still getting an error: Refused to display in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’
The icon displays without problems.

jiraIssueGlances: [
      {
        icon: {
          width: 33,
          height: 32,
          url: '/assets/logo.svg',
        },
        content: {
          type: 'label',
          label: {
            value: 'View on Page',
          },
        },
        target: {
          type: 'web_panel',
          url: '/assets/view-on-page.html',
        },
        ...
      },
    ],

OR

jiraIssueContents: [
      {
        icon: {
          width: 33,
          height: 32,
          url: '/assets/logo.svg',
        },
        target: {
          type: 'web_panel',
          url: '/assets/view-on-page.html',
        },
        ...
      },
    ],