cancel
Showing results for 
Search instead for 
Did you mean: 

Preview Email Errors

Preview Email Errors

Hi guys,

 

Whenever I preview any email templates from Marketing > Email Templates these errors will show.

 

Can anyone help me with these issues?

 

Thanks in advanced.

 

EDIT: This is the error in text form

- Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-+2fKGObejacuP4SLuObA8gksXdvQNO4noaRbPZ5NrT4='), or a nonce ('nonce-...') is required to enable inline execution.

- Blocked script execution in 'http://shoshaaustralia.com/vietkkong1975/admin/email_template/popup/key/f83b5572c102850cb106595be602...' because the document's frame is sandboxed and the 'allow-scripts' permission is not set.

- Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://shoshaaustralia.com') does not match the recipient window's origin ('null').
sendLocation @ gps.js:196
- shoshaaustralia.com/:1 A cookie associated with a cross-site resource at http://shoshaaustralia.com/ was set without the `SameSite` attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with `SameSite=None` and `Secure`. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https://www.chromestatus.com/feature/5088147346030592 and https://www.chromestatus.com/feature/5633521622188032.
- shoshaaustralia.com/:1 Access to font at 'http://shoshaaustralia.com/static/version1573775174/adminhtml/Magento/backend/en_US/fonts/opensans/r...' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
opensans-400.woff2:1 Failed to load resource: net::ERR_FAILED
gps.js:196

- Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://shoshaaustralia.com') does not match the recipient window's origin ('null').
sendLocation @ gps.js:196
- shoshaaustralia.com/:1 Access to font at 'http://shoshaaustralia.com/static/version1573775174/adminhtml/Magento/backend/en_US/fonts/opensans/r...' from origin 'null' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
opensans-400.woff:1 Failed to load resource: net::ERR_FAILED
gps.js:196

- Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://shoshaaustralia.com') does not match the recipient window's origin ('null').

 

shosha-preview-error.PNG

9 REPLIES 9

Re: Preview Email Errors

Hi @tony_le2 

 

Can you please share the link of images as this image will be visible only when approved by moderator.

 

Thanks!

Re: Preview Email Errors

Hi @tony_le2 

 

Please upload a better quality image. The errors can not be read as font is very small.

 

You may edit your question and update error message there in text form.

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: Preview Email Errors

Hello @tony_le2 

Checkout this reference

https://stackoverflow.com/questions/41965066/access-to-image-from-origin-null-has-been-blocked-by-co...

Can you also confirm its not causing by any ad blocker in your browser only?

Also if you are using CDN, discuss this issue with them as well.

 

 

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: Preview Email Errors

Hi, I have edit the error in text form, please help me

Re: Preview Email Errors


@theMageComp wrote:

Hello @tony_le2 

Checkout this reference

https://stackoverflow.com/questions/41965066/access-to-image-from-origin-null-has-been-blocked-by-co...

Can you also confirm its not causing by any ad blocker in your browser only?

Also if you are using CDN, discuss this issue with them as well.

 

 


I'm not using CDN, I have tried all browsers with and without Ad Blocker. the error still the same.

Re: Preview Email Errors

Can anyone help me with this issue please

Re: Preview Email Errors

Is there any update on this? I got the same error.

Re: Preview Email Errors


@torhoehn wrote:

Is there any update on this? I got the same error.


Hi @torhoehn 

what I did is make the height of the iframe as 100% or a fixed px and ignore the errors from the console. which will show the template correctly.

Re: Preview Email Errors

@tony_le2 Thanks for your answer! Maybe we had a different error with js minifying enabled. We applied this fix: https://github.com/magento/magento2/commit/e8eb43a84cb861cedda424aaf8be83aa1c6c1c29