javascript - Not able to access ms crm page using "parent.window.xrm.page" from aspx page through chrome -


we getting exception "blocked frame origin "https:domain1:port1" accessing frame origin "https:domain1:port2". protocols, domains, , ports must match". @ code "window.parent.xrm.utility.openentityform("entityname", null, parameters, windowoptions);" in ms crm 2015

we loading custom page in sitemap(not in iframe of entity) providing cutomwebapps’url @ sitemap level. when trying access xrm of parent page getting above error.

this working fine in ie11 fails above error in chrome , firefox.

did faced issue? please help.

thanks

i think running cross frame scripting issues here more browsers in general crm.

there content here suggests using window.postmessage instead. there further links in article provide additional detail.

there times when want enable communication iframe contains content on different domain. window.postmessage browser method provides capability versions of internet explorer no earlier internet explorer 8. google chrome, mozilla firefox, , apple safari support it

that said this article suggests using window.open maybe easiest solution in case.

outside application, pages not have access xrm.utility.openentityform function, use window.open or link open specific record or form entity.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -