Designer not loading
ark-brighthustle opened this issue · 12 comments
ark-brighthustle commented
There is no content in HTML Version tab ...it shows blank page
github-actions commented
Thank you!! This is your first issue on this repo
slegouffe commented
Hi @evilrat !
You should RTFM ;-) :
you may need also to add to the unlayer domain to the Content Security Policy. Update the config file config/middleware.js as:
- "strapi::security",
+ {
+ name: "strapi::security",
+ config: {
+ contentSecurityPolicy: {
+ directives: {
+ "script-src": ["'self'", "editor.unlayer.com"],
+ "frame-src": ["'self'", "editor.unlayer.com"],
+ "img-src": [
+ "'self'",
+ "data:",
+ "cdn.jsdelivr.net",
+ "strapi.io",
+ "s3.amazonaws.com",
+ ],
+ },
+ },
+ },
+ },
saintego commented
Can you post whole file?. Because I have this
module.exports = [
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
directives: {
'script-src': ["'self'", 'editor.unlayer.com'],
'frame-src': ["'self'", 'editor.unlayer.com'],
'img-src': [
"'self'",
'data:',
'cdn.jsdelivr.net',
'strapi.io',
's3.amazonaws.com',
],
},
},
},
},
]
and without any success
adexzy1 commented
i am facing this same issue and I wonder why this issue was closed