System Information
4.0.2 :
Linux Mint 20.1 :
Postgresql :
14.17.3 :
6.14.13 :
N/A :
Hi, new to strapi so I apologize if this is obvious, I’m trying to override the CSP settings that are being set from strapi, but can’t seem to find where to do that. Could someone point me in the right direction?
Thanks!
I found the solution to this here
opened 07:09AM - 19 Nov 21 UTC
closed 01:30AM - 06 Dec 21 UTC
issue-type: bug
severity: medium
status: confirmed
source: core:strapi
source: core:upload
version: v4
## 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
![screenshot](https://raw.githubusercontent.com/boeto/image/main/uploads/20211119144511-40f80f.jpg)
### 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
2 Likes