alexzaganelli / strapi-plugin-email-designer

Design your own email templates w/ visual composer directly inside the Strapi admin panel and send composed emails programmatically from your controllers / services.
MIT License
327 stars 49 forks source link

Email designer is broken with strapi 4.19.0 #140

Open guerillacodester opened 7 months ago

guerillacodester commented 7 months ago

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.

github-actions[bot] commented 7 months ago

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

guerillacodester commented 7 months ago

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

kubarazny commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 7 months ago

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 commented 6 months ago

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.