Closed gregghawes closed 2 years ago
@gregghawes did you follow the instructions to enable Link functionality?
I added the 'img-src': ['*'],
to middlewares.js. Are there other instructions that I am missing?
This is my middlewares.js @melishev
module.exports = [
'strapi::errors',
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
directives: {
'img-src': ['*'],
},
}
},
},
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
];
Well, the last PR https://github.com/melishev/strapi-plugin-react-editorjs/pull/44 should solve your problem, thanks for the input - @nhvu1988
I can't seem to get the embed or link functions to work.
The embed element just shows "This content is blocked. Contact the site owner to fix the issue."
When I try to add a link, an error pops up saying "Couldn't fetch the link data" and I notice a 404 shows in the console.
http: GET /api/react-editorjs/link?url=https%3A%2F%2Fwww.google.co.uk%2F (1 ms) 404
"@strapi/strapi": "4.1.7", "strapi-plugin-react-editorjs": "^2.0.0"