TinyMCE的SCRIPT5:访问被拒绝。在同一个域中典型的跨域错误 [英] TinyMCE SCRIPT5: Access is denied. Typical cross-domain error on same domain

查看:305
本文介绍了TinyMCE的SCRIPT5:访问被拒绝。在同一个域中典型的跨域错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用TinyMCE的负载通过AJAX,但在同一个域中,相同的协议(HTTPS),并能正常工作的任何其他浏览器。我觉得像IE以为我穿越区,尽管我肯定不会。 该项目位于媒体寺(GS),这是工作的罚款对我的(DV),似乎并没有因为我转移,激活了SSL,工作等等...

I am using TinyMCE load via AJAX but on the same domain, same protocol (https), and it works fine on any other Browser. I feel like IE thinks I'm crossing domains although I'm certainly not. The project is hosted at Media Temple (gs), it was working fine on my (dv) and doesn't seem to work since I transferred, activated the SSL, etc...

编辑:我使用的TinyMCE(3.5b2)的最新版本

Edit : I'm using the latest version of TinyMCE (3.5b2).

编辑2:我的猜测是: 的问题是不是从TinyMCE的本身,因为完全相同的脚本我们自己的Intranet(使用任何浏览器,包括IE浏览器。)我觉得浏览器会认为我们是交了域虽然我们不是。我的猜测是相关的根文件夹一个htaccess的问题或东西...

Edit 2 : My guess is : The problem isn't from TinyMCE itself since the same exact script works on our own intranet (with any browser, IE included.) I think the browser thinks we are "cross-domaining" although we are not. My guess would be a htaccess problem or something related to root folders...

编辑3:不要用document.domain的=domain.com你的JS,如果你不交了域

Edit 3 : Do not use document.domain = "domain.com" on your JS if you are not cross-domaining.

问题解决了。

推荐答案

不要使用

document.domain = "domain.com"

在你的JS头部,如果你不交了域。这似乎已经解决了我所有的问题。

on your JS header if you are not cross-domaining. It seemed to have solved all my issues.

这篇关于TinyMCE的SCRIPT5:访问被拒绝。在同一个域中典型的跨域错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆