Language | Message |
---|---|
英文 | Permission denied to access property 'XXX' |
Permission denied to call method XXX | |
Permission denied for |
|
<XXX.YYY.ZZZ> *¾n document.domain à³CP <XXX.YYY.ZZZ> (ýp Location.toStringdocument.domain=<XXX.YYY.ZZZ> |
跨域访问资源,常见的是访问不同域的框架页 (frame,iframe)。
同主域的系统,可以通过设置为同一主域达到同源:document.domain = "example.com";
案例
异常字段 | 值 |
---|---|
Message | Permission denied to call method Location.toString |
URL | https://www.example.com/index.htm |
File | (空) |
Line | 0 |
- Permission denied to access property 'toString'
- Permission denied to call method Location.toString
- Permission denied for <https://www.example.com> to call method Location.toString
- <http://www.example.com> *¾n document.domain à³CP <http://www.example.com> (ýp Location.toStringdocument.domain=<http://www.example.com>
相关异常
延伸阅读
- "Location.toString" uncaught (security) exception caused by improper Flash plugin behavior
- cross-domain? Firefox reports Permission denied to call method Location.toString
- Uncaught Exception: Permission denied to call method to Location.toString
- Permissions Denied to get Property location.toString in FireFox 3
- Error: Permission denied for (document.domain has not been set) to call method Location.toString on (document.domain=).
- Permission denied to call method Location.toString
讨论 ¶
comments powered by Disqus