title: Uncaught SecurityError: Failed to set the 'domain' property on 'Document': 'app.herokuapp.com' is not a suffix of ''.
body: <p>I'm developing a Phonegap app, in order to avoid CORS protection, thanks to <a href="https://stackoverflow.com/questions/2206586/wymeditor-across-subdomains-cross-site-permission-issue">this question</a>, I've tried changing document domain in my javascript file.</p>
  
  <p>Now I'm getting this error</p>
  
  <pre><code>Uncaught SecurityError: Failed to set the 'domain' property on 'Document': 'app.herokuapp.com' is not a suffix of ''. 
  </code></pre>
  
  <p>How can I make it so my phonegap app have domain?</p>