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