Open skyfloyd opened 4 years ago
I am trying to use angular-froala-wysiwyg:3.1.1 from my angular application(on domain https://pstest.opinionwizard.com), which works fine. But when I am trying to use https://pstest.opinionwizard.com by iframe from https://test.opinionwizard.com/ I see Uncaught Error: Blocked a frame with origin "https://pstest.opinionwizard.com" from accessing a cross-origin frame. error.
It throws error on _nodemodules/angular-froala-wysiwyg/editor/editor.directive.js : line 185 _this._editor = new FroalaEditor(_this._element, _this._opts);
_this._editor = new FroalaEditor(_this._element, _this._opts);
I use
"angular-froala-wysiwyg": "^3.1.1", "froala-editor": "^3.1.1",
P.S. It worked fine with angular-froala-wysiwyg:2.9.3
I solved this issue by setting document.domain = 'opinionwizard.com'; on https://pstest.opinionwizard.com and https://test.opinionwizard.com/ sites.
document.domain = 'opinionwizard.com';
I am trying to use angular-froala-wysiwyg:3.1.1 from my angular application(on domain https://pstest.opinionwizard.com), which works fine. But when I am trying to use https://pstest.opinionwizard.com by iframe from https://test.opinionwizard.com/ I see Uncaught Error: Blocked a frame with origin "https://pstest.opinionwizard.com" from accessing a cross-origin frame. error.
It throws error on _nodemodules/angular-froala-wysiwyg/editor/editor.directive.js : line 185
_this._editor = new FroalaEditor(_this._element, _this._opts);
I use
P.S. It worked fine with angular-froala-wysiwyg:2.9.3