System Information
- Strapi Version: 4.0.6
- Operating System: MacOS Catalina
- Database: SQLite
- Node Version: 14.18.3
- NPM Version: 8.3
- Yarn Version: 1.22.17
My setup follows all the rules outlined in the github docu here:
https://github.com/strapi/strapi/tree/master/packages/providers/upload-cloudinary#security-middleware-configuration
// middlewares.js
module.exports = [
'strapi::errors',
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
'connect-src': ["'self'", 'https:'],
// Cloudinary
'img-src': ["'self'", 'data:', 'blob:', 'res.cloudinary.com'],
'media-src': ["'self'", 'data:', 'blob:', 'res.cloudinary.com'],
upgradeInsecureRequests: null,
},
},
},
},
'strapi::cors',
'strapi::poweredBy',
'strapi::logger',
'strapi::query',
'strapi::body',
'strapi::favicon',
// 'strapi::session',
'strapi::public',
];
// plugins.js
module.exports = ({ env }) => ({
upload: {
config: {
provider: 'cloudinary',
providerOptions: {
cloud_name: env('CLOUDINARY_NAME'),
api_key: env('CLOUDINARY_KEY'),
api_secret: env('CLOUDINARY_SECRET'),
},
actionOptions: {
upload: {},
delete: {},
},
},
},
})
But on upload I do get an error message like this:
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
{
message: "Invalid Signature 1ca6c8a6425504aa8abdf2a42f4d46a38ab1700f. String to sign - 'public_id=hochstrahlbrunnen_blau_nacht_e53aa63c8b×tamp=1643655469'.",
name: 'Error',
http_code: 401
}
There are quite some reports out there mentioning this particular problem, but none comes with a solution that helps. So i wonder: What do I have to do to get rid of the problem?