@webbio/strapi-plugin-userback
v1.0.0
Published
Plugin that enables Userback
Downloads
216
Maintainers
Keywords
Readme
Strapi plugin Userback
This Strapi plugin enables Userback feedback widget on your Strapi admin panel.
Plugin Config
To enable this plugin. Add it to plugins.ts
userback: {
enabled: true,
config: PluginConfig
}
Config type:
type PluginConfig = {
token?: string; // Secret token for the plugin
};
Important
- To make the script work correctly, make sure you add the
'https://api.userback.io'
and'https://static.userback.io'
script-src directives to your middlewaresstrapi::security
config. Example:
export default ({ env }) => [
// ...
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
// ...
directives: {
// ...
'script-src': [
// ...
'https://api.userback.io', 'https://static.userback.io'
// ...
],
// ...
upgradeInsecureRequests: null
}
}
}
}
// ...
];