未捕获的SecurityError: Failed to set the 'domain'propert
Uncaught SecurityError: Failed to set the 'domain' property on 'Document': 'app.herokuapp.com' is not a suffix of ''.
我正在开发一个Phonegap应用程序,为了避免CORS保护,由于这个问题,我已经尝试在我的javascript文件中更改文档域。
现在我得到这个错误
Uncaught SecurityError: Failed to set the 'domain' property on 'Document': 'app.herokuapp.com' is not a suffix of ''.
我怎样才能使我的phonegap应用程序有域名?
使用django-crossdomainxhr-middleware.py解决了我的问题!
相关文章:
- Intercept the cellSubmit jqGrid
- CSS中的游标属性似乎不适用于USB On The Go
- Appending the innerhtml of <th>
- jquery in the middle of html
- Can't get the tail to wag (animate) in three.js?
- jquery.proxy in the bootstrap-typeahead.js context
- What is the difference between `HTMLImports.whenReady` and `
- confuse about the parentNode
- momentjs toISOString without the "z"
- toDataURL(), from the Web onto my Computer
- JavaScript Get the child id
- jquery insert-before to text in the same DOM
- JQuery DataPicker add on the
- jQuery: setInterval effects on the server?
- gulp-concat twice the content
- What type is the 'return' keyword?
- Change the title on click of <li>
- DataTables-FixedHeader-多个tr in the ad对齐问题
- What is the reason for cloning the listeners array in nodejs
- 未捕获的SecurityError: Failed to set the 'domain'propert