Skip to content

Commit 3262562

Browse files
committed
updated docs
1 parent 806df80 commit 3262562

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,41 @@ If you want to use the plugin with a managed service account at [chartbrew.com](
113113

114114
![](https://raw.githubusercontent.com/chartbrew/strapi-plugin-chartbrew/master/admin/src/assets/chartbrew-connection.jpg)
115115

116+
### Cannot authenticate with Chartbrew
117+
118+
[**Read more here**](https://github.com/chartbrew/strapi-plugin-chartbrew/issues/13)
119+
120+
If you run both Strapi and Chartbrew on `localhost` or on a non-secure connection (http), you will need to tweak the Strapi security settings. To do this, open the `config/middlewares.js` file and add the following attribute:
121+
122+
```
123+
module.exports = [
124+
...
125+
{
126+
name: 'strapi::security',
127+
config: {
128+
contentSecurityPolicy: {
129+
useDefaults: true,
130+
directives: {
131+
'connect-src': ["'self'", 'http:', 'https:'],
132+
upgradeInsecureRequests: null,
133+
},
134+
},
135+
},
136+
},
137+
...
138+
];
139+
```
140+
141+
And don't forget to build the Strapi project again:
142+
143+
```
144+
# npm
145+
npm run build
146+
147+
# yarn
148+
yarn build
149+
```
150+
116151
### Create charts from Strapi
117152

118153
You can create charts directly from your Strapi dashboards. To do this, you will need to create a Strapi API Token and add it in the Chartbrew settings page.

0 commit comments

Comments
 (0)