Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-12504

Deal with X-Frame-Options for cross-origin websites in the SPA SDK demos

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Normal
    • Resolution: Available for testing
    • None
    • 14.2.0, 100.2.0
    • None
    • None

    Description

      Problem:
      At the moment, HST returns `X-Frame-Options: SAMEORIGIN` that makes it impossible to load an external website inside the channel manager iframe (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options).

      Solution:
      When the SPA mode is enabled, we can return `Content-Security-Policy: frame-ancestors 'self' https://www.example.com` instead of `X-Frame-Options` (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors).

      Attachments

        Activity

          People

            ntrajkovski Nikola Trajkovski
            mdokolin Mikhail Dokolin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: