opened 07:09AM - 19 Nov 21 UTC
closed 01:30AM - 06 Dec 21 UTC
issue: bug
severity: medium
status: confirmed
source: core:strapi
source: core:upload
## Bug report
### Describe the bug
[v4]**Content Security Policy issue** o…f plugin-upload in strapi-4.0.0-beta.13
### Steps to reproduce the behavior
1. Install and change the upload provider to aws-s3
2. Upload an image and get the issue
### Expected behavior
Should be able to see the picture. The same setting runs correctly in v3.
### Screenshots

### Code snippets
```js
// ./config/plugins.js
module.exports = ({ env }) => ({
upload: {
config: {
provider: "aws-s3",
providerOptions: {
accessKeyId: env("AWS_ACCESS_KEY_ID"),
secretAccessKey: env("AWS_ACCESS_SECRET"),
region: env("AWS_REGION"),
params: {
Bucket: env("AWS_BUCKET"),
},
},
},
},
});
```
### System
- Node.js version: v14.17.6
- YARN version: 1.22.17
- Strapi version: 4.0.0-beta.13
- Database: PostgreSQL 13
- Operating system: macOS 10.15
### Additional context
null