Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Email designer is broken with strapi 4.19.0 #140

Open
guerillacodester opened this issue Jan 30, 2024 · 8 comments · May be fixed by #143
Open

Email designer is broken with strapi 4.19.0 #140

guerillacodester opened this issue Jan 30, 2024 · 8 comments · May be fixed by #143

Comments

@guerillacodester
Copy link

The designer is broken with strapi version 4.19.0

  1. install the plugin as per documentation
  2. click the Email designer tab
  3. a blank white screen appears with no ability to edit or save.
  4. reverting to strapi version 4.17.0 fixes the issue.
Copy link

Thank you!! This is your first issue on this repo

@guerillacodester
Copy link
Author

Seems to be a strapi issue, since it works again with the recent strapi ver 4.19.1

@kubarazny
Copy link

kubarazny commented Feb 6, 2024

Seems to be a strapi issue, since it works again with the recent strapi ver 4.19.1

I have still this issue on 4.19.1

Refused to load https://editor.unlayer.com/embed.js?2 because it does not appear in the script-src directive of the Content Security Policy.

I need to add editor.unlayer.com/embed.js to the script-src directive

@LatinCoder18
Copy link

Seems to be a strapi issue, since it works again with the recent strapi ver 4.19.1

I have still this issue on 4.19.1

Refused to load https://editor.unlayer.com/embed.js?2 because it does not appear in the script-src directive of the Content Security Policy.

I need to add editor.unlayer.com/embed.js to the script-src directive

Hi, can you share an example of how you do that ?

'script-src': ["'self'", "'unsafe-inline'",'editor.unlayer.com/embed.js','editor.unlayer.com/embed.js?2='],

imagen

I used that but did not work.

Thanks !

@kubarazny
Copy link

Seems to be a strapi issue, since it works again with the recent strapi ver 4.19.1

I have still this issue on 4.19.1
Refused to load https://editor.unlayer.com/embed.js?2 because it does not appear in the script-src directive of the Content Security Policy.
I need to add editor.unlayer.com/embed.js to the script-src directive

Hi, can you share an example of how you do that ?

'script-src': ["'self'", "'unsafe-inline'",'editor.unlayer.com/embed.js','editor.unlayer.com/embed.js?2='],

imagen

I used that but did not work.

Thanks !

Try this:

contentSecurityPolicy: { useDefaults: true, directives: { 'connect-src': ["'self'", 'https:'], 'img-src': ["'self'", 'data:', 'blob:', 'res.cloudinary.com', "cdn.jsdelivr.net", "strapi.io", "s3.amazonaws.com"], 'media-src': ["'self'", 'data:', 'blob:', 'res.cloudinary.com'], "script-src": ["'self'", "editor.unlayer.com", "editor.unlayer.com/embed.js"], "frame-src": ["'self'", "editor.unlayer.com"], }, },

@guerillacodester
Copy link
Author

I did nothing different. Just deleted the node_modules, .strapi and all dist folders, and upgraded strapi to the latest via yarn.Now it works.

@LatinCoder18
Copy link

Seems to be a strapi issue, since it works again with the recent strapi ver 4.19.1

I have still this issue on 4.19.1
Refused to load https://editor.unlayer.com/embed.js?2 because it does not appear in the script-src directive of the Content Security Policy.
I need to add editor.unlayer.com/embed.js to the script-src directive

Hi, can you share an example of how you do that ?
'script-src': ["'self'", "'unsafe-inline'",'editor.unlayer.com/embed.js','editor.unlayer.com/embed.js?2='],
imagen
I used that but did not work.
Thanks !

Try this:

contentSecurityPolicy: { useDefaults: true, directives: { 'connect-src': ["'self'", 'https:'], 'img-src': ["'self'", 'data:', 'blob:', 'res.cloudinary.com', "cdn.jsdelivr.net", "strapi.io", "s3.amazonaws.com"], 'media-src': ["'self'", 'data:', 'blob:', 'res.cloudinary.com'], "script-src": ["'self'", "editor.unlayer.com", "editor.unlayer.com/embed.js"], "frame-src": ["'self'", "editor.unlayer.com"], }, },

@kubarazny Thanks, that works for me !

@panosru
Copy link

panosru commented Mar 1, 2024

That indeed fixed the issue, but now I cannot see the icons of plugins in marketplace, any suggestions how can I fix that? I'm very new to strapi (like today) so I'm sorry for the n00bish question.

UPDATE:
Adding "market-assets.strapi.io" to img-src fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants