Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-5768

Showing zul page in iframe from different domains

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • 9.6.4
    • None
    • None
    • None

      Steps to Reproduce

      I want to show zul page in iframe.

      Iframe is located on host1 and zul page is located on host2. Query initiated by iframe returns  header Access-Control-Allow-Origin with value 'host1' in response.

      Thank you,

      Kirill
       

      Current Result

       When zul page is loaded into iframe I've got the error:

      Failed to send requests to server.
      
      Permission denied to access property "zAu" on cross-origin object (SecurityError)Failed to send requests to server.
      
      Permission denied to access property "zAu" on cross-origin object (SecurityError) 

      https://imgur.com/ODo9ZoM

      How to resolve the problem?

      Expected Result

       

      Debug Information

       

      Workaround

       

            hawk hawk
            zkman zkman
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: