divio/django-cms — Issue #1047: Unsafe JavaScript attempt to access frame with URL
Author: AdrianRibao
Created: 2011-10-11 20:58:03+00:00
State: open

I get the error Unsafe "JavaScript attempt to access frame with URL ..." when serving django-cms in production when using wymeditor.

STATIC_URL is set to 'static.mydomain.com' and the page is served from mydomain.com

I've read in the docs ( http://docs.django-cms.org/en/2.1.3/getting_started/tutorial.html ) about this, but only works in development, and doesn't seem to be a good solution for production environments.

I also get some XMLHttpRequest errors for this reason.

The last error I get is: "Uncaught TypeError: Cannot read property 'styleSheets' of undefined jquery.wymeditor.js:4471":

var styles = this._doc.styleSheets[0];

Everything works ok when serving the static content and the web from the same domain.

What is the best approach for get this working?