Coder Social home page Coder Social logo

Comments (8)

kubarazny avatar kubarazny commented on June 3, 2024 14

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"], }, },

from strapi-plugin-email-designer.

kubarazny avatar kubarazny commented on June 3, 2024 1

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

from strapi-plugin-email-designer.

LatinCoder18 avatar LatinCoder18 commented on June 3, 2024 1

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 !

from strapi-plugin-email-designer.

github-actions avatar github-actions commented on June 3, 2024

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

from strapi-plugin-email-designer.

guerillacodester avatar guerillacodester commented on June 3, 2024

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

from strapi-plugin-email-designer.

LatinCoder18 avatar LatinCoder18 commented on June 3, 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

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 !

from strapi-plugin-email-designer.

guerillacodester avatar guerillacodester commented on June 3, 2024

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.

from strapi-plugin-email-designer.

panosru avatar panosru commented on June 3, 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.

from strapi-plugin-email-designer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.