Ok. I sorted it out. This error was appearing only when I was editing pages from the main menu of wordpress.com site. In this case name of the page domain was wordpress.com and domain of the frame was domain of my site. When I was correcting pages using the site editor everything was ok. Domains of page and frame were the same. Thank you for your help.