Closed gustawdaniel closed 3 months ago
but it requires extended middlewares.ts
In my case preciselab
is name of bucket, and fra1
is region.
export default [
'strapi::logger',
'strapi::errors',
// 'strapi::security',
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
'connect-src': ["'self'", 'https:'],
'img-src': ["'self'", 'data:', 'blob:',
'preciselab.fra1.digitaloceanspaces.com',
],
'media-src': ["'self'", 'data:', 'blob:',
'preciselab.fra1.digitaloceanspaces.com',
],
upgradeInsecureRequests: null
}
}
}
},
'strapi::cors',
'strapi::poweredBy',
'strapi::query',
'strapi::body',
'strapi::session',
'strapi::favicon',
'strapi::public',
];
discussion https://forum.strapi.io/t/strapi-provider-upload-do-for-strapi-v4/13270/4
I checked and it works with
plugins.ts