# request-header **Repository Path**: jiangchuanshize/request-header ## Basic Information - **Project Name**: request-header - **Description**: chrome 浏览器插件,一键复制 http 的 request header 信息,例如复制 token 信息 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-30 - **Last Updated**: 2025-04-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Request Header Copier A Chrome extension that allows you to copy specific request header values with a single click. ## Features - Monitor and capture specific request header values (e.g., authorization tokens) - Save multiple header names to track - Copy the most recent header value to clipboard with one click - View the last copied value - Simple, intuitive user interface ## Installation 1. Download or clone this repository 2. Open Chrome and navigate to `chrome://extensions/` 3. Enable "Developer mode" (toggle in the top-right corner) 4. Click "Load unpacked" and select the directory containing these files 5. The extension is now installed and active ## Usage 1. Click on the extension icon in your browser toolbar to open the popup 2. By default, the extension tracks the "authorization" header 3. You can add more headers to track by entering their names and clicking "Save" 4. Select any saved header from the list to make it active 5. Click "Copy Header Value" to copy the most recent value of the selected header to your clipboard 6. The most recent value is also displayed in the popup for reference ## How It Works The extension uses Chrome's `webRequest` API to monitor outgoing HTTP requests and capture the headers you've chosen to track. When a tracked header is detected, its value is stored and made available for copying. ## Notes - Header names are case-insensitive (e.g., "Authorization" and "authorization" are treated as the same) - The extension requires the "webRequest" permission to access request headers - Your header values are stored locally in your browser and are not sent to any remote servers ## Creating Icon Files Don't forget to create icon files in the following locations: - images/icon16.png - images/icon48.png - images/icon128.png # 请求头复制器使用指南 这个浏览器插件可以让您轻松复制网络请求中的请求头(Request Headers)值。以下是使用步骤: ## 安装步骤 1. 下载或克隆此插件代码仓库 2. 打开Chrome浏览器,访问chrome://extensions/ 3. 开启右上角的"开发者模式" 4. 点击"加载已解压的扩展程序",选择包含插件文件的文件夹 5. 确保创建了所需的图标文件(images/icon16.png、images/icon48.png、images/icon128.png) ## 使用方法 1. 安装后,点击浏览器工具栏中的插件图标打开弹窗界面 2. 默认情况下,插件会自动跟踪"authorization"请求头 3. 要添加其他请求头: - 在文本框中输入请求头名称(如"cookie"、"user-agent"等) - 点击"Save"按钮保存 4. 保存的请求头会显示在列表中,点击列表中的某个请求头可以选择它 5. 当您浏览网页并发送请求时,插件会自动捕获所选请求头的值 6. 点击"Copy Header Value"按钮可将最近捕获的请求头值复制到剪贴板 7. 最近复制的值会显示在"Last Copied Value"部分 ## 实用场景 - 快速复制授权令牌(Authorization tokens) - 在API测试过程中复制Cookie值 - 在不同环境之间传递会话信息 - 捕获并记录自定义请求头 - 所有请求头值都存储在本地,不会发送到任何远程服务器,确保您的数据安全。