浏览器正在阻止具有其自身域的来源的框架

时间:2019-06-27 03:53:40

标签: javascript php html fckeditor

在此站点上:https://mdintro.com/registration/?user_group_id=Employer,我遇到几个错误,这些错误使用户无法在描述字段中输入文本。 Chrome和Safari显示此错误:

Uncaught DOMException: Blocked a frame with origin "https://mdintro.com" from accessing a cross-origin frame." fckeditorcode_gecko.js:36 ...

但是为什么它会阻止来自同一域的帧?

Firefox(可能还有其他条件)没有阻止此框架,但在FCKeditor上发出以下警告:

"Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user’s experience. For more help http://xhr.spec.whatwg.org/ fckeditorcode_gecko.js:67:105"

有人可以帮我吗??

更新: 该站点具有一个SmartJobBoard管理面板,该面板使用相同的FCKeditor框架,并且结果无误。 Chrome也不会在控制台上显示任何错误,并且管理员用户可以在文本编辑器上输入enter文本。它们都引用相同的FCKeditor扩展。

这是https://mdintro.com/registration/?user_group_id=Employer

上显示的框架
<!-- USER: REGISTRATION (CONSOLE ERROR: BLOCKED) -->
<iframe 
  id="CompanyDescription___Frame" 
  src="https://mdintro.com/system/ext/fckeditor/editor/fckeditor.html?InstanceName=default_value&amp;Toolbar=BasicAdmin" 
  width="345px" height="200" frameborder="0" scrolling="no" 
  style="margin: 0px; padding: 0px; border: 0px; background-color: transparent; background-image: none; width: 345px; height: 200px;">
</iframe>

以下是SmartJobBoard管理面板中显示的框架:

<!-- ADMIN: EDIT JOB POSTING (NO ERRORS) -->
<iframe 
  id="default_value___Frame" 
  src="https://mdintro.com/admin/../system/ext/fckeditor/editor/fckeditor.html?InstanceName=default_value&amp;Toolbar=BasicAdmin" 
  width="100%" height="200" frameborder="0" scrolling="no" 
  style="margin: 0px; padding: 0px; border: 0px; background-color: transparent; background-image: none; width: 100%; height: 200px;">
</iframe>

已解决: 我在Blocked a frame with origin "<mydomain>" from accessing a frame with origin "https://www.facebook.com"

中应用了tdebroc的解决方案

0 个答案:

没有答案