Support Article

Pega scripts are throwing errors if frames are included

SA-31659

Summary



User is including iframe in the header or side navigation.

On including the iframe, user is seeing script errors.


Error Messages




Steps to Reproduce

  1. Create a harness and a section included in it. 
  2. Drag a text input and change its control to CustomControl. 
  3. Create a customcontrol(non-auto generated html) with the below line in it: 
    1. Omit extra spaces > unselected 
    2. HTML source: <iframe src="http://www.google.com"></iframe> 
  4. Launch the portal and one can find script errors from changetracker.js file. 
    1. Script error: Uncaught DOM exception: Blocked a frame with the origin from accessing a cross-origin frame.



Root Cause



A defect in Pegasystems’ code or rules.

Resolution



Apply HFix-30894.

 

Published December 20, 2016 - Updated January 4, 2017

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.