This Strapi plugin enables Userback feedback widget on your Strapi admin panel.
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
};
- 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
}
}
}
}
// ...
];