Uncaught DOMException: Blocked a Frame with origin from accessing a cross origin-frame
I have a Magento 1.9 site that uses TinyMCE. Everything worked fine until I added a cdn. The script wouldn't load because it was on a different domain. I went ahead and added a subdomain but it still doesn't work. When I started troubleshooting I came across this http://archive.tinymce.com/wiki.php/TinyMCE3x:How-to_load_TinyMCE_crossdomain
I changed the header of the script to-
//Uncomment and change this document.domain value if you are loading the script cross subdomains
document.domain = "assets.example.com";
At the end of the script I also added (in bold)-
**document.domain = 'assets.example.com';**tinyMCEPopup.init();
Still doesn't work. The errors I am getting are-
Uncaught DOMException: Blocked a frame with origin "https://assets.example.com" from accessing a cross-origin frame.
at Object.init (https://assets.example.com/js/tiny_mce/tiny_mce_popup.js:5:106)
at https://assets.example.com/js/tiny_mce/tiny_mce_popup.js:5:4810
init @ VM1187 tiny_mce_popup.js:5
(anonymous) @ VM1187 tiny_mce_popup.js:5
mctabs.js:13 Uncaught TypeError: Cannot read property 'windowManager' of undefined
at new MCTabs (mctabs.js:13)
at mctabs.js:119
MCTabs @ mctabs.js:13
(anonymous) @ mctabs.js:119
form_utils.js:11 Uncaught TypeError: Cannot read property 'baseURI' of undefined
at form_utils.js:11
(anonymous) @ form_utils.js:11
VM1187 tiny_mce_popup.js:5
Uncaught TypeError: Cannot read property 'plugin_url' of undefined
at Object.getWindowArg (VM1187 tiny_mce_popup.js:5)
at Object.requireLangPack (VM1187 tiny_mce_popup.js:5)
at link.js:1
magento-1.9 javascript tinymce
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have a Magento 1.9 site that uses TinyMCE. Everything worked fine until I added a cdn. The script wouldn't load because it was on a different domain. I went ahead and added a subdomain but it still doesn't work. When I started troubleshooting I came across this http://archive.tinymce.com/wiki.php/TinyMCE3x:How-to_load_TinyMCE_crossdomain
I changed the header of the script to-
//Uncomment and change this document.domain value if you are loading the script cross subdomains
document.domain = "assets.example.com";
At the end of the script I also added (in bold)-
**document.domain = 'assets.example.com';**tinyMCEPopup.init();
Still doesn't work. The errors I am getting are-
Uncaught DOMException: Blocked a frame with origin "https://assets.example.com" from accessing a cross-origin frame.
at Object.init (https://assets.example.com/js/tiny_mce/tiny_mce_popup.js:5:106)
at https://assets.example.com/js/tiny_mce/tiny_mce_popup.js:5:4810
init @ VM1187 tiny_mce_popup.js:5
(anonymous) @ VM1187 tiny_mce_popup.js:5
mctabs.js:13 Uncaught TypeError: Cannot read property 'windowManager' of undefined
at new MCTabs (mctabs.js:13)
at mctabs.js:119
MCTabs @ mctabs.js:13
(anonymous) @ mctabs.js:119
form_utils.js:11 Uncaught TypeError: Cannot read property 'baseURI' of undefined
at form_utils.js:11
(anonymous) @ form_utils.js:11
VM1187 tiny_mce_popup.js:5
Uncaught TypeError: Cannot read property 'plugin_url' of undefined
at Object.getWindowArg (VM1187 tiny_mce_popup.js:5)
at Object.requireLangPack (VM1187 tiny_mce_popup.js:5)
at link.js:1
magento-1.9 javascript tinymce
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have a Magento 1.9 site that uses TinyMCE. Everything worked fine until I added a cdn. The script wouldn't load because it was on a different domain. I went ahead and added a subdomain but it still doesn't work. When I started troubleshooting I came across this http://archive.tinymce.com/wiki.php/TinyMCE3x:How-to_load_TinyMCE_crossdomain
I changed the header of the script to-
//Uncomment and change this document.domain value if you are loading the script cross subdomains
document.domain = "assets.example.com";
At the end of the script I also added (in bold)-
**document.domain = 'assets.example.com';**tinyMCEPopup.init();
Still doesn't work. The errors I am getting are-
Uncaught DOMException: Blocked a frame with origin "https://assets.example.com" from accessing a cross-origin frame.
at Object.init (https://assets.example.com/js/tiny_mce/tiny_mce_popup.js:5:106)
at https://assets.example.com/js/tiny_mce/tiny_mce_popup.js:5:4810
init @ VM1187 tiny_mce_popup.js:5
(anonymous) @ VM1187 tiny_mce_popup.js:5
mctabs.js:13 Uncaught TypeError: Cannot read property 'windowManager' of undefined
at new MCTabs (mctabs.js:13)
at mctabs.js:119
MCTabs @ mctabs.js:13
(anonymous) @ mctabs.js:119
form_utils.js:11 Uncaught TypeError: Cannot read property 'baseURI' of undefined
at form_utils.js:11
(anonymous) @ form_utils.js:11
VM1187 tiny_mce_popup.js:5
Uncaught TypeError: Cannot read property 'plugin_url' of undefined
at Object.getWindowArg (VM1187 tiny_mce_popup.js:5)
at Object.requireLangPack (VM1187 tiny_mce_popup.js:5)
at link.js:1
magento-1.9 javascript tinymce
I have a Magento 1.9 site that uses TinyMCE. Everything worked fine until I added a cdn. The script wouldn't load because it was on a different domain. I went ahead and added a subdomain but it still doesn't work. When I started troubleshooting I came across this http://archive.tinymce.com/wiki.php/TinyMCE3x:How-to_load_TinyMCE_crossdomain
I changed the header of the script to-
//Uncomment and change this document.domain value if you are loading the script cross subdomains
document.domain = "assets.example.com";
At the end of the script I also added (in bold)-
**document.domain = 'assets.example.com';**tinyMCEPopup.init();
Still doesn't work. The errors I am getting are-
Uncaught DOMException: Blocked a frame with origin "https://assets.example.com" from accessing a cross-origin frame.
at Object.init (https://assets.example.com/js/tiny_mce/tiny_mce_popup.js:5:106)
at https://assets.example.com/js/tiny_mce/tiny_mce_popup.js:5:4810
init @ VM1187 tiny_mce_popup.js:5
(anonymous) @ VM1187 tiny_mce_popup.js:5
mctabs.js:13 Uncaught TypeError: Cannot read property 'windowManager' of undefined
at new MCTabs (mctabs.js:13)
at mctabs.js:119
MCTabs @ mctabs.js:13
(anonymous) @ mctabs.js:119
form_utils.js:11 Uncaught TypeError: Cannot read property 'baseURI' of undefined
at form_utils.js:11
(anonymous) @ form_utils.js:11
VM1187 tiny_mce_popup.js:5
Uncaught TypeError: Cannot read property 'plugin_url' of undefined
at Object.getWindowArg (VM1187 tiny_mce_popup.js:5)
at Object.requireLangPack (VM1187 tiny_mce_popup.js:5)
at link.js:1
magento-1.9 javascript tinymce
magento-1.9 javascript tinymce
edited Nov 1 '18 at 20:15
Vivek Kumar
2,4242629
2,4242629
asked Feb 6 '17 at 21:44
Tyler JensenTyler Jensen
74110
74110
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ yesterday
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
it happend beacause you use parallel download paths. change back js path to origin and will be ok. I have the same here, i can't find a solution for that
add a comment |
When you set the CDN for JS, Magento gives you a clear warning
Warning! When using CDN, in some cases JavaScript may not run properly if CDN is not in your subdomain
You need to either get a CDN that allows you to set a domain name on it cdn.yoursite.com
or don't put the JS on a CDN.
System=>Configuration=>General=>Web=>Unsecure=>Base JavaScript URL
and set it to {{unsecure_base_url}}js/
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f158420%2funcaught-domexception-blocked-a-frame-with-origin-from-accessing-a-cross-origin%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
it happend beacause you use parallel download paths. change back js path to origin and will be ok. I have the same here, i can't find a solution for that
add a comment |
it happend beacause you use parallel download paths. change back js path to origin and will be ok. I have the same here, i can't find a solution for that
add a comment |
it happend beacause you use parallel download paths. change back js path to origin and will be ok. I have the same here, i can't find a solution for that
it happend beacause you use parallel download paths. change back js path to origin and will be ok. I have the same here, i can't find a solution for that
answered Aug 15 '17 at 23:16
PantelisPantelis
3114
3114
add a comment |
add a comment |
When you set the CDN for JS, Magento gives you a clear warning
Warning! When using CDN, in some cases JavaScript may not run properly if CDN is not in your subdomain
You need to either get a CDN that allows you to set a domain name on it cdn.yoursite.com
or don't put the JS on a CDN.
System=>Configuration=>General=>Web=>Unsecure=>Base JavaScript URL
and set it to {{unsecure_base_url}}js/
add a comment |
When you set the CDN for JS, Magento gives you a clear warning
Warning! When using CDN, in some cases JavaScript may not run properly if CDN is not in your subdomain
You need to either get a CDN that allows you to set a domain name on it cdn.yoursite.com
or don't put the JS on a CDN.
System=>Configuration=>General=>Web=>Unsecure=>Base JavaScript URL
and set it to {{unsecure_base_url}}js/
add a comment |
When you set the CDN for JS, Magento gives you a clear warning
Warning! When using CDN, in some cases JavaScript may not run properly if CDN is not in your subdomain
You need to either get a CDN that allows you to set a domain name on it cdn.yoursite.com
or don't put the JS on a CDN.
System=>Configuration=>General=>Web=>Unsecure=>Base JavaScript URL
and set it to {{unsecure_base_url}}js/
When you set the CDN for JS, Magento gives you a clear warning
Warning! When using CDN, in some cases JavaScript may not run properly if CDN is not in your subdomain
You need to either get a CDN that allows you to set a domain name on it cdn.yoursite.com
or don't put the JS on a CDN.
System=>Configuration=>General=>Web=>Unsecure=>Base JavaScript URL
and set it to {{unsecure_base_url}}js/
answered Nov 1 '18 at 20:22
HaimHaim
1,202922
1,202922
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f158420%2funcaught-domexception-blocked-a-frame-with-origin-from-accessing-a-cross-origin%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown