Results 1 to 4 of 4

Thread: iFrame same origin issues

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2009
    Location
    Perth, Western Australia
    Posts
    489

    Default iFrame same origin issues

    Hi All,

    I'm trying to display the contents of a URL within an iframe but keep getting refused to display when inspecting under console mode. I can place the URL in a browser and it displays fine.

    I have also tried to use a cWebHtmlBox and define the iframe with certain sandbox and referrepolicy options but no luck .. Any idea..??

    Code:
    Object oShowReceipt is a cWebHtmlBox
                   Set psHtml to ""
                   Set pbFillHeight to True
                   Set piColumnSpan to 0
                   
                   Procedure DoShowReceipt String sReceiptURL
                             String sUrl
                             // sandbox="allow-scripts allow-same-origin allow-scripts allow-forms" 
                             Move ( '<html><head></head><body><iframe src=' + '"' + sReceiptURL + '"' + ' scrolling="auto" margin-left="auto" margin-right="auto" frameborder="no" title="MIRO" referrerpolicy="strict-origin-when-cross-origin" name="My iFrame" width="100%" height="100%" frameborder="0"></body></html>' ) to sUrl
                             //
                             WebSet psHtml to sUrl
                             //
                   End_Procedure
                   
                   Procedure DoClearBoard
                             WebSet psHtml to ""
                   End_Procedure
                   
    End_Object


    Click image for larger version. 

Name:	SquareReceiptTest.png 
Views:	97 
Size:	33.2 KB 
ID:	14836



    Last edited by Sam Cannone; 14-Sep-2021 at 02:16 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •