Wymeditor through subdomains. (Problem with resolved resolution).

I have a wymeditor on sub1.domain.com that the page on sub2.domains.com accesses.

Error message appears in this message

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

Permission denied for <http://removed.example.com> to get property HTMLDocument.styleSheets from <http://removed2.example.com>.

I assume this is a cross-site scripting-based cross-site, but I would like to transfer my media from different domains. How can i do this.

+3
source share
2 answers

Add a string document.domain = "domain.com";to both pages, replacing domain.comwith any of your actual domain name.

+3
source

"domain" "Document": "xxxx.com" "xx.xxx.xxx.xxx".

0

Source: https://habr.com/ru/post/1731530/


All Articles