1.1.0 • Published 2 months ago

insomnia-plugin-ask-before-sending v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
2 months ago

insomnia-plugin-ask-before-sending

npm.io npm.io

Table of Contents

Overview

An Insomnia plugin that asks for confirmation before sending a request, useful for production environments.

Usage

Installation

From the Plugins Tab

  1. Open Insomnia
  2. Go to Application > Preferences > Plugins
  3. Type "insomnia-plugin-ask-before-sending"
  4. Click "Install Plugin"

Manual Installation

  1. Download "insomnia-plugin-ask-before-sending.zip" from Releases > Assets
  2. Go to Application > Preferences > Plugins
  3. Click "Show Plugins Folder"
  4. Extract the zip from step 1 to the "plugins" folder
  5. Click "Reload Plugin List"

Configuration

Update your environment: 1. Click "Manage Environments" 2. Create a "askBeforeSending" environment variable with the HTTP methods that need confirmation before sending:

{
  "askBeforeSending": ["POST", "PUT", "DELETE"]
}
  1. You can also prevent the confirmation popup from appearing for specific requests through the "askBeforeSendingIgnoreRequests" environment variable:
{
  "askBeforeSending": ["POST", "PUT", "DELETE"],
  "askBeforeSendingIgnoreRequests": ["req_3af401b1f07f4cad9c3f657d08ea7a6d"],
}

To find out the request ID, right-click the request and select "Settings". The request ID will be at the top, beginning with req_.