insomnia-plugin-request-confirmation is a plugin for Insomnia that shows a confirmation dialog before an HTTP request is sent. The confirmation is triggered if the shouldConfirm property is set to true in the environment configuration (in every project).
- Displays a confirmation dialog for users to approve or cancel requests before they are sent.
- Confirmation is only triggered when the
shouldConfirmproperty is set totruein the active environment. - Useful for preventing accidental requests, especially in sensitive environments like production.
- Open Insomnia.
- Go to Insomnia → Preferences → Plugins → Open Plugins Folder.
- Default location:
- MacOS: ~/Library/Application\ Support/Insomnia/plugins/
- Windows: %APPDATA%\Insomnia\plugins\
- Linux: $XDG_CONFIG_HOME/Insomnia/plugins/ or ~/.config/Insomnia/plugins/
- Default location:
- In the folder that opens, create a new folder called
insomnia-plugin-request-confirmation. - Clone or download the contents of this repository into the newly created folder.
- Restart Insomnia to load the plugin.
Important: Make sure the folder name starts with
insomnia-plugin-. If the naming convention is not respected, the plugin will not work because Insomnia requires all plugins to follow this prefix rule.
-
In Insomnia, go to your environment settings.
-
Add the
shouldConfirmproperty to the environment where you want confirmation enabled:{ "url": "https://foo.api.com", "shouldConfirm": true } -
When sending a request using this environment, a confirmation dialog will appear.
-
If the user selects Cancel, the request will be aborted.
Contributions are welcome. You can submit a Pull Request or open an Issue here